Thanks for your response. Having "before" in the configtest exec and
"notify" in the dhcpd service causes an error about a circular dependency.
Dropping the "notify" but keeping the "before" makes the order work
properly, but the configtest doesn't get triggered when the service
restarts.
Is
Hi,
A couple of ways come to mind. Use the 'before' metaparameter in your
configtest exec.
You can use ordering syntax '->' between your resources, see
http://docs.puppetlabs.com/guides/language_guide.html#chaining-resources
See this for a complete overview:
http://docs.puppetlabs.com/learnin
On Mon, Aug 15, 2011 at 6:29 AM, Jonathan Gazeley
wrote:
> Hi all,
>
> I'm trying to set up a routine in puppet where if a service is scheduled for
> a restart, eg because of new configs, then a config test is executed first.
> If the config test fails, the service is not restart (and so keeps run
Hi all,
I'm trying to set up a routine in puppet where if a service is scheduled
for a restart, eg because of new configs, then a config test is executed
first. If the config test fails, the service is not restart (and so
keeps running with the old config, rather than stopping and causing an