I'm looking at the case of distributing /etc/cups/printers.conf.When this file changes, I'd like to distribute it. But before placing the new file, cupsd needs to be shut down, and restarted again afterwards. This can be done easily enough using an Exec to shut it down and the existing Service entry to trigger a restart, but how can I tell my manifest that when the File triggers, first do the Exec, then the File, then the Service?Is there a way to chain these together to produce the effect I'm looking for? To stop a service before deploying a new config file, then start it up again?
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/MGIkGFm1LYY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fddddd78-f5e9-4fa2-82c4-37a5eaef0d8a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Setup a dummy file for printers.conf anywhere I the filesystem
Make it to notify the exec stop cups( setting refreshonly=true) chain it with the right file printers.conf and notify from here the cups service.
Regards,