----- Original Message ----- > From: "Axel Bock" <axel.b...@arbeitsagentur.de> > To: puppet-users@googlegroups.com > Sent: Wednesday, September 5, 2012 9:47:03 AM > Subject: [Puppet Users] notify vs. require of services > > Hi readers, > > I had this idea. I am deploying a configuration file of a service > with puppet, and I want to restart the service if the file changes. > > so I had this idea that the file definition contains a require=> and > a notify=> for the service. that does not work, because Puppet does > assume cyclic dependencies then. > > And I have no clue whatsoever why. both statements go from file to > service (or from service to file, however you like to put it), but I > really don't see a cyclic dependency here.
file{"x": require => Service["y"], notify => Service["y"]} The require says 'do the service before the file' while the notify says 'once the file changed, restart the service'. You cant manage the service both before and after a file so there's a conflict. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.