Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create manage_unit, manage_dropin types from hiera #436

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

traylenator
Copy link
Contributor

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

@traylenator traylenator added the enhancement New feature or request label Mar 12, 2024
manifests/init.pp Outdated Show resolved Hide resolved
@TheMeier TheMeier self-requested a review March 12, 2024 19:30
Units and dropins can now be created from hiera
records:

e.g.

```yaml
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
```

* Fixes voxpupuli#435
@traylenator traylenator merged commit 63a41e0 into voxpupuli:master Mar 12, 2024
35 checks passed
@traylenator traylenator deleted the hiera branch March 12, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add hiera-friendly option to manage dropins
4 participants