On 10/03/2014 04:48 PM, jcbollinger wrote: > > > I suppose you are trying to update Puppet and Facter via the Puppet > agent itself (otherwise you would use the same mechanism to restart the > service that you do to install the update). If you contemplate > something like that, then your manifests should declare a signaling > relationship between the package and the service, for instance by use of > a chain operator: > > Package['facter'] ~> Service['puppet'] > Package['puppet'] ~> Service['puppet'] > > Equivalently, you could have the Service 'subscribe' to the Packages, or > have the Packages 'notify' the Service. > > It is unlikely that you need to specify a custom 'restart' command to > your Service. It very likely knows how to do a restart already; it's > just not seeing any reason to do one. > > If you want to try to trigger a service restart via the conf file, then > the first thing to do would be to just 'touch' the file to change its > modification timestamp without changing any of its contents. I have > lost track of whether conf changes actually do trigger the agent to > restart, but surely that would be easy for you to test. > > > John
Depending on the package in use, this can be ineffective. If the package's post-installation routine triggers a restart of the agent process, you will likely end up with a half-configured package and an unhappy package management system. I know I was bitten by that quite severely in the past. Note that any signals emitted by the package resource are of no consequence in this scenario. Since the process that triggered the package update (the very puppet agent) is terminated by the postinst script, *no* other resources can be synchronized. HTH, Felix -- 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/544F9431.3050406%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/d/optout.
