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

Discussion: use class instead of exec for notification #2

Closed
faxm0dem opened this issue Sep 7, 2015 · 8 comments
Closed

Discussion: use class instead of exec for notification #2

faxm0dem opened this issue Sep 7, 2015 · 8 comments

Comments

@faxm0dem
Copy link

faxm0dem commented Sep 7, 2015

I think it would make more sense to use this module like this:

file { '/lib/systemd/system/my.service':
   [...]
} ~> Class[Systemd::DaemonReload]

Reasons I can think of:

  • make code be easier to modify without changing interface
  • make code more portable: one dist may need executing something, the other noop
@johnny5v
Copy link

Using class makes more sense. Agree .

@felixb
Copy link
Contributor

felixb commented Jan 25, 2016

👍

felixb pushed a commit to felixb/puppet-systemd that referenced this issue Jan 27, 2016
@faxm0dem
Copy link
Author

Should we use a define or a class?
Which would make more sense (see also #5)

@faxm0dem
Copy link
Author

After discussing this with @Volcane on IRC, it came out that it would probably make sense to go further with the abstraction, and to provide a systemd::unit defined type which would take care of everything.

@felixb
Copy link
Contributor

felixb commented Jan 27, 2016

@faxm0dem I've created a proposal PR for this already in #4.

@raphink
Copy link
Member

raphink commented May 4, 2016

#4 has been merged. I see from #5 that there was a suggestion still to use defines to avoid the problems described by @roidelapluie. Is that still a plan?

jfarrell pushed a commit to jfarrell/puppet-systemd that referenced this issue Oct 1, 2016
@reenberg
Copy link

Am I wrong in saying that this and #5 can be closed as this was implemented using a class in #18?

@faxm0dem
Copy link
Author

I agree, thanks for noting this!

op-ct pushed a commit to op-ct/puppet-systemd that referenced this issue Jun 17, 2022
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

5 participants