Correct docs for name var of systemd::dropin_file
The filename and unit parameter wered documented incorrectly as to which was the name variable.
Merge pull request #289 from traylenator/docs
Correct docs for name var of systemd::dropin_file
Make Systemd::Unit type stricter (#290)
Previously lots of unit names like ``` this is a service with spaces in.service ``` were permitted for instance. From systemd.unit > Valid unit names consist of a "name prefix" and a dot and a suffix specifying the unit type. The "unit prefix" must consist of one or more valid characters (ASCII letters, digits, ":", "-", "_", ".", and "\"). The total length of the unit name including the suffix must not exceed 256 characters. The type suffix must be one of ".service", ".socket", ".device", ".mount", ".automount", ".swap", ".target", ".path", ".timer", ".slice", or ".scope". in addition we allow `@` to cover the case of template or template instance.
New systemd::manage_unit and systemd::manage_dropin type
Example
```puppet
systemd::manage_unit{ 'myrunner.service':
$unit => {
'Description' => 'My great service',
},
$service => {
'Type' => 'oneshot',
'ExecStart' => '/usr/bin/doit.sh',
},
$install => {
WantedBy => 'multi-user.target',
},
}
```
will generate and manage a new systemd unit from a template.
The type `systemd::manage_dropin` is similar
for drop in files.Merge pull request #288 from traylenator/templated
New systemd::manage_unit, systemd::manage_dropin types
resolved: onlyif snippet requires shell support
Fixes a problem (I) introduced in #276. Signed-off-by: Simon Deziel <simon@sdeziel.info>
Fix path references to resolv.conf in doc
Signed-off-by: Simon Deziel <simon@sdeziel.info>
Merge pull request #293 from simondeziel/resolved-stopped-fix
resolved: `onlyif` snippet requires shell support
feat: manage systemd-timesyncd package on Debian >= 11 and Ubuntu >= …
…20.04
Merge pull request #296 from saz/timesyncd-package
feat: manage timesyncd package on Debian >= 11 and Ubuntu >= 20.04
Allow MemorySwapMax to be specified
Support specification of the absolute limit on swap usage of the executed processes in this unit.
For example
```puppet
systemd::service_limits{'condor.service':
limits => {
'MemorySwapMax' => '0',
}
}
```
* https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html#MemorySwapMax=bytesDebian 8 was end of life 2020-06-30 https://wiki.debian.org/DebianReleases more over acceptance jobs now fail with: ```json {"stream":"\u001b[91mW: GPG error: http://deb.debian.org/ jessie-updates InRelease: The following signatures were invalid: KEYEXPIRED 1668891673\nW: GPG error: http://deb.debian.org/ jessie Release: The following signatures were invalid: KEYEXPIRED 1668891673\n\u001b[0m"} ```
Merge pull request #304 from traylenator/swaplimit
Allow MemorySwapMax to be specified as service limit
Merge pull request #305 from traylenator/debian8
Remove debian 8 support
Remove restart_service on service_limits define
Since 97dd16f this parameter is a bad idea. It doesn't do a daemon reload and it may restart at the wrong time. In fact, I'd argue it's always been a bad idea. The recommended alternative to this is to manage the service explicitly and let Puppet handle it. There is an automatic notify that takes care of it. Fixes #190
Merge pull request #310 from voxpupuli/maint/drop-eol-os-f31
drop support for fedora 30 & 31 (EOL)
Merge pull request #308 from voxpupuli/maint/drop-eol-os-ubuntu-16.04
drop support for ubuntu 16.04 (EOL)
Merge pull request #307 from voxpupuli/maint/drop-eol-os-debian-9
drop debian 9 support (EOL)
Signed-off-by: Simon Deziel <simon@sdeziel.info>
Add support for Ubuntu 22.04 LTS
Signed-off-by: Simon Deziel <simon@sdeziel.info>
Merge pull request #193 from ekohl/drop-restart-service
Remove restart_service on service_limits define
Merge pull request #194 from ekohl/notify-service-on-drop-in
Notify services by default on drop in files
Merge pull request #278 from simondeziel/supported-oses
Add support for Ubuntu 22.04
Merge pull request #264 from bastelfreak/removeparams
systemd::unit_file: remove hasrestart/hasstatus params
This fact provides information about the udevadm utilty.
Merge pull request #292 from jhoblitt/IT-3840/udev
add udevadm & udev facts
Add restart_service parameter on service_limits for compatibility
In 8a9e03a the parameter was removed, but this makes it very hard for modules to be compatible with both < 4 and >= 4. Requiring >= 4 will be painful, so this adds the parameter again but only accepts the parameter false. A concrete example is the puppet-redis module which sets restart_service to false to prevent a restart. This would be compatible with both the old and new behavior, making upgrades smoother. Fixes: 8a9e03a