voxpupuli / puppet-systemd

Puppet module to manage systemd
https://forge.puppet.com/puppet/systemd
Apache License 2.0
54 stars 142 forks source link

Create manage_unit, manage_dropin types from hiera #436

Closed traylenator closed 6 months ago

traylenator commented 6 months ago

Pull Request (PR) description

Units and dropins can now be created from hiera records:

e.g.

systemd::manage_dropins:
  myconf.conf:
    ensure: present
    unit: myservice.service
    service_entry:
      Type: oneshot
      ExecStart:
        - ''
        - '/usr/bin/doit.sh'

systemd::manage_units:
  myservice.service:
    unit_entry:
      Description: My Customisation
    service_entry:
      CPUWeight: 2000

This Pull Request (PR) fixes the following issues

Fixes #435