44 changes: 0 additions & 44 deletions .gitlab-ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .msync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

modulesync_config_version: '4.2.0'
modulesync_config_version: '5.1.0'
42 changes: 0 additions & 42 deletions .pdkignore

This file was deleted.

2 changes: 1 addition & 1 deletion .puppet-lint.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--relative
--fail-on-warnings
8 changes: 4 additions & 4 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
Gemfile:
optional:
':test':
- gem: puppet-lint-param-docs
.puppet-lint.rc:
enabled_lint_checks:
- parameter_documentation
- parameter_types
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
Each new release typically also includes the latest modulesync defaults.
These should not affect the functionality of the module.

## [v3.5.2](https://github.com/voxpupuli/puppet-systemd/tree/v3.5.2) (2022-01-12)

[Full Changelog](https://github.com/voxpupuli/puppet-systemd/compare/v3.5.1...v3.5.2)

**Fixed bugs:**

- timesyncd compatibility with Debian 8 [\#239](https://github.com/voxpupuli/puppet-systemd/pull/239) ([tuxmea](https://github.com/tuxmea))
- Link the unit file to /dev/null when "enable =\> mask" [\#236](https://github.com/voxpupuli/puppet-systemd/pull/236) ([simondeziel](https://github.com/simondeziel))

**Closed issues:**

- README refers to non-existent dns\_stub\_resolver parameter [\#195](https://github.com/voxpupuli/puppet-systemd/issues/195)
- Parameter value 'mask' for 'enable' does not work [\#188](https://github.com/voxpupuli/puppet-systemd/issues/188)

## [v3.5.1](https://github.com/voxpupuli/puppet-systemd/tree/v3.5.1) (2021-10-20)

[Full Changelog](https://github.com/voxpupuli/puppet-systemd/compare/v3.5.0...v3.5.1)
Expand Down
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
source ENV['GEM_SOURCE'] || "https://rubygems.org"

group :test do
gem 'voxpupuli-test', '~> 2.5', :require => false
gem 'voxpupuli-test', '~> 5.0', :require => false
gem 'coveralls', :require => false
gem 'simplecov-console', :require => false
gem 'puppet_metadata', '~> 1.0', :require => false
gem 'puppet-lint-param-docs', :require => false
end

group :development do
Expand All @@ -22,7 +21,7 @@ end

group :release do
gem 'github_changelog_generator', '>= 1.16.1', :require => false if RUBY_VERSION >= '2.5'
gem 'voxpupuli-release', '>= 1.0.2', :require => false
gem 'voxpupuli-release', '>= 1.2.0', :require => false
gem 'puppet-strings', '>= 2.2', :require => false
end

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

# Attempt to load voxupuli-test (which pulls in puppetlabs_spec_helper),
# Attempt to load voxpupuli-test (which pulls in puppetlabs_spec_helper),
# otherwise attempt to load it directly.
begin
require 'voxpupuli/test/rake'
Expand Down
57 changes: 0 additions & 57 deletions appveyor.yml

This file was deleted.

2 changes: 2 additions & 0 deletions lib/facter/systemd.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Fact: systemd
#
# Purpose:
Expand Down
2 changes: 2 additions & 0 deletions lib/puppet/provider/loginctl_user/ruby.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# @summary custom provider to manage systemd user sessions/linger
# @see https://www.freedesktop.org/software/systemd/man/loginctl.html
# @see https://wiki.archlinux.org/title/Systemd/User
Expand Down
2 changes: 2 additions & 0 deletions lib/puppet/type/loginctl_user.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'digest/md5'

Puppet::Type.newtype(:loginctl_user) do
Expand Down
9 changes: 8 additions & 1 deletion manifests/timesyncd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,17 @@
} else {
$_ntp_server = join($ntp_server, ' ')
}
$setting = $facts['os']['family'] ? {
'Debian' => $facts['os']['release']['major'] ? {
'8' => 'Servers',
default => 'NTP',
},
default => 'NTP',
}
ini_setting { 'ntp_server':
ensure => 'present',
value => $_ntp_server,
setting => 'NTP',
setting => $setting,
section => 'Time',
path => '/etc/systemd/timesyncd.conf',
notify => Service['systemd-timesyncd'],
Expand Down
10 changes: 8 additions & 2 deletions manifests/unit_file.pp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@

assert_type(Systemd::Unit, $name)

if $target {
if $enable == 'mask' {
$_target = '/dev/null'
} else {
$_target = $target
}

if $_target {
$_ensure = 'link'
} else {
$_ensure = $ensure ? {
Expand All @@ -80,7 +86,7 @@
ensure => $_ensure,
content => $content,
source => $source,
target => $target,
target => $_target,
owner => $owner,
group => $group,
mode => $mode,
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "puppet-systemd",
"version": "3.5.1",
"version": "3.5.2",
"author": "Vox Pupuli",
"summary": "Puppet Systemd module",
"license": "Apache-2.0",
Expand Down
Loading