Group spec expectations in a single example
The catalog is compiled for every example, so testing the same resource in a single example is faster.
Merge pull request #331 from ekohl/group-example
Group spec expectations in a single example
Allow DefaultDependencies to be set in [Unit] section
Allow `DefaultDependencies` to be specified as a `Boolean` in
the `[Unit]` section of a templated unit or dropin file.
e.g.
```puppet
systemd::manage_unit{'my.service':
ensure => present,
unit_entry => {
'DefaultDependencies' => false,
},
}
```
https://www.freedesktop.org/software/systemd/man/systemd.unit.html#DefaultDependencies=Addition of timer directives to manage_unit and manage_dropin
The timer directives for unit files is now complete for options
present in the man page of systemd-253.
For example:
```puppet
systemd::manage_unit{'my.timer':
ensure => present,
unit_entry => {
'Description' => 'my timer',
},
timer_entry => {
'Calendar' => 'daily',
'AccuracySecs' => '1 hour',
},
}
```
Previously only the 'Calendar' directive was available and this
patch also includes a bug fix for that.
Previously
```
systemd::manage_dropin{'my.timer':
ensure => present,
unit => 'myunit.service',
timer_entry => {
'Calendar' => ['','daily'],
},
}
```
with an empty resetting first `''` element was not permitted and now it is..Merge pull request #335 from traylenator/AccuracySec
Addition of timer directives to manage_unit and manage_dropin
Merge pull request #334 from traylenator/defaultdeps
Allow DefaultDependencies to be set in [Unit] section
Addition of path directives to manage_unit/dropin
The path directives for unit files is now complete for options present in the man page
of systemd-253.
The parameter `path_entry` can now be specified for `systemd::manage_unit` or
`systemd::manage_dropin`.
For example:
```puppet
systemd::manage_unit{'etc-passwd.path':
ensure => present,
unit_entry => {
'Description' => 'Monitor /etc/passwd',
},
path_entry => {
'PathChanged' => '/etc/passwd',
'Unit' => 'etc-passwd-updates.service',
},
}
```
or
```puppet
systemd::manage_dropin{'trigger-limit.conf':
ensure => present,
unit => 'etc-passwd.path',
path_entry => {
'TriggerLimitBurst' => 100,
},
}
```
https://www.freedesktop.org/software/systemd/man/systemd.path.htmlCorrect timer_entry error message on a non-timer
While
```puppet
systemd::manage_dropin{'custom.conf':
ensure => present,
unit => 'my.service',
timer_entry => {
'Calendar' => 'Daily'
},
}
```
was failing the error message gave incorrect information.Group spec expectations in a single example
The catalog is compiled for every example, so testing the same resource in a single example is faster.
Merge pull request #338 from canihavethisone/master
Increase inifile dependency upper version to < 7.0.0
Merge pull request #337 from traylenator/path
Addition of path directives to manage_unit/dropin
Addition of SyslogIdentifier to [service] section
Allow a SyslogIdentifier to be specified as:
```puppet
systemd::manage_unit{'roger.service':
ensure => present,
unit_entry => {
'Description' => 'My Service',
}
service_entry => {
'ExecStart' => '/usr/bin/doit',
'SyslogIdentifier' => 'logdoit',
}
```
`systemd::manage_dropin` can be used similarly.
https://www.freedesktop.org/software/systemd/man/systemd.exec.html#SyslogIdentifier=Allow KillMode and KillSignal in [Service] section
Allow KillMode and KillSignal to be specified to `systemd::manage_unit` and `systemd::manage_dropin`
Merge pull request #339 from traylenator/syslogidentifier
Allow SyslogIdentifier, KillMode and KillSignal to [service] section
Refactor the unit template to: * Reduce code duplication * Make it easier to add new sections to the unit file.
Allow LimitCORE in [Service] for manage_unit/dropin
Addition of LimitCOR to `[service]` section of `systemd::manage_unit` and `systemd::manage_dropin` Added as penance for giving a wrong guess twice to someone how to do this. Always confuse me since while: `systemctl show sshd.service -t LimitCORESoft` has a value it cannot be set as I understand it. * https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Process%20Properties
Merge pull request #342 from voxpupuli/puppet7
Drop Puppet 6 support
Merge pull request #341 from traylenator/corelimit
Allow LimitCORE in [Service] for manage_unit/dropin
Merge pull request #344 from traylenator/refactor
Refactor unit template
Merge pull request #346 from voxpupuli/modulesync
modulesync 6.0.0