On Tue, Dec 07, 2010 at 12:56:47PM -0800, russell.fulton wrote: > class pulledpork ( $master) { > exec { > "/home/snort/bin/pulledpork -nc conf/$master/pp.conf": > cwd => "/home/snort", > subscribe => [File["/home/snort/conf/$master/pp"], File[ "/ > home/snort/Rules/$master"] ], > notify => Service["snort.$master"], > user => "snort"; > } > > }
exec must run before service resource, because you specified a notify. I think puppet will add a dependency here to prevent one resource to be evaluated twice (e.g. start service, running exec, restart service) > snort{ "snort.$master": master => $master } > class { pulledpork: stage => post, master => $master } You want pulledpork to run in stage post, so after service snort. Here you are: loop -Stefan
pgpygXEgMcCzO.pgp
Description: PGP signature