I'm having a problem getting some dependencies exactly right.
This is the code I originally wrote:
File['/usr/lib/systemd/system/patcher-client.service']~>Exec['systemctl
daemon-reload']~>Service['patcher-client']
It works great except... oops... if any *other* module does Exec['systemctl
daemon-reload'], then Service['patcher-client'] restarts. That additional
restart is unneeded.
I thought about rewriting it as:
File['/usr/lib/systemd/system/patcher-client.service']~>Exec['systemctl
daemon-reload']
File['/usr/lib/systemd/system/patcher-client.service']~>Service['patcher-client']
But then how would Puppet know to do the Exec[] before the Service[]? I
could add:
Exec['systemctl daemon-reload']->Service['patcher-client']
But then we're basically in the same situation as the original code. Right?
I guess I kind of want something like this: (not real syntax)
File['/usr/lib/systemd/system/patcher-client.service']~> (
Exec['systemctl daemon-reload']~>Service['patcher-client'] )
How do I achieve that?
Thanks in advance,
Tom
--
Email: [email protected] Work: [email protected]
Blog: http://EverythingSysadmin.com
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CAHVFxgnkPQTgeNHv6L0Ao%2BuvdVtL-7ftaPfJG3gzXF0OCs6%3DsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.