Skip to content

Hiera usage for systemd::unit_file #86

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

Closed
linuxmail opened this issue Sep 11, 2018 · 3 comments
Closed

Hiera usage for systemd::unit_file #86

linuxmail opened this issue Sep 11, 2018 · 3 comments

Comments

@linuxmail
Copy link

hi,

just a short question: can I call the systemd::unit_file from Hiera too ? I tried was included the systemd class and

systemd::unit_file:
  'foo':
    ensure: 'running'
    source: 'puppet:///...foo.service'

but it seems, that I have to use a create_resource manifest wrapper .., or maybe I just call the class wrong ...

@linuxmail linuxmail changed the title Hiera usage Hiera usage for systemd::unit_file Sep 11, 2018
@ekohl
Copy link
Member

ekohl commented Sep 11, 2018

It's a define so you're correct you need some sort of wrapper for usage in hiera.

@linuxmail
Copy link
Author

hi,

thanks.

@bastelfreak
Copy link
Member

@linuxmail in other modules we often have an array as parameter. The manifest can iterate on that array of hashes and create the defined resource and pass each hash. If you're interested you can provide that as a PR to this module.

op-ct pushed a commit to op-ct/puppet-systemd that referenced this issue Jun 17, 2022
op-ct pushed a commit to op-ct/puppet-systemd that referenced this issue Jun 17, 2022
Add optional parameters to groupinstall
kajinamit pushed a commit to kajinamit/puppet-systemd that referenced this issue Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants