Allow percent (%) character in unit names.
This allows relations to be set up between similar instances of
two templated units.
For example:
```puppet
systemd::manage_dropin{'user-aklog.conf':
ensure => present,
unit => 'user@.service',
unit_entry => {
'Documentation' => 'Run an aklog log before we start systemd --user',
'After' => ['user-aklog@%i.service'],
'Requires' => ['user-aklog@%i.service'],
},
}
```
Previously the `%` character was considered illegal in a unit name.Merge pull request #401 from traylenator/instace_relation
Allow percent (%) character in unit names.
Merge pull request #402 from voxpupuli/modulesync
modulesync 7.2.0
systemd::cache = false result was not vague.
Starting with
```puppet
class{ 'systemd':
manage_reolved => true,
cache => false,
}
```
note that the cache parameter is currently `false` by default and an explicit
`Cache=no` would not be set. Instead nothing would be done.
This patch maintains backwards compatibility in that the default
still results in no modification to `/etc/systemd/resolved.conf`.
However an explicit setting of `cache => false` with this patch will now add
`Cache=no` to `resolved.conf`.Merge pull request #403 from traylenator/cacheparam
systemd::cache = false result was vague.
Merge pull request #407 from C24-AK/fix/duplicate_unit_service_keys
Deleting duplicate Key entries in types/unit/service.pp
CH: sort conditions and asserts in types/unit/unit.pp and generate RE…
…FERENCE.md using rake
Merge pull request #408 from fragfutter/master
CH: add ConditionPathIsMountPoint
Support multiple Environment Settings
It was previously impossible to set more than one environment variable:
e.g.
```puppet
systemd::manage_unit { 'test.service':
unit_entry => {
'Description' => 'Bla',
},
service_entry => {
'Type' => 'oneshot',
'Environment' => [
'bla=foo',
'bar=bla',
],
'ExecStart' => '/usr/bin/true',
},
enable => false,
active => false,
}
```
* Fixes #404Merge pull request #409 from traylenator/multienv
Support multiple Environment Settings
Support StartLimitIntervalSec and StartLimitBurst
Allow `StartLimitIntervalSec` and `StartLimitBurst` to be set in the `[unit]` section of a managed drop or unit file. https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#StartLimitIntervalSec=interval
Merge pull request #412 from traylenator/startlimit
Support `StartLimitIntervalSec` and `StartLimitBurst`