Hi, Is it possible to configure a service to ignore notifies? I''d like to have some special cases where a "notify => Service[''xyz'']" is ignored by the service "xyz"... (The service is managed by Pacemaker and I don''t want Puppet to manage this service) Cheers, Tobias -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/aB-JDHsdoS8J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 7 August 2012 17:20, tobias <tobru@nine.ch> wrote:> Hi, > > Is it possible to configure a service to ignore notifies? > I''d like to have some special cases where a "notify => Service[''xyz'']" is > ignored by the service "xyz"... (The service is managed by Pacemaker and I > don''t want Puppet to manage this service) >You could do something like this: service { ''xyz'': hasrestart => false, restart => ''/bin/true'', } -- Erik Dalén -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
That worked! Thanks a lot... On Wednesday, August 8, 2012 10:37:33 AM UTC+2, Erik Dalén wrote:> > On 7 August 2012 17:20, tobias <to...@nine.ch <javascript:>> wrote: > > Hi, > > > > Is it possible to configure a service to ignore notifies? > > I''d like to have some special cases where a "notify => Service[''xyz'']" > is > > ignored by the service "xyz"... (The service is managed by Pacemaker and > I > > don''t want Puppet to manage this service) > > > > You could do something like this: > service { ''xyz'': > hasrestart => false, > restart => ''/bin/true'', > } > > -- > Erik Dalén >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/4mt_i7CX97kJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 08/08/2012 01:53 PM, tobias wrote:> That worked! Thanks a lot...Isn''t it better to restart it through pacemaker commands? Something like: service { ''xyz'': hasrestart => false, restart => ''crm restart blah blah'', } Some services reload configurations on HUP, so you can even send signal. Much cleaner than just to ignore the configuration change... It will bite you in the a** sooner or later if you ignore the changes... -- Jakov Sosic www.srce.unizg.hr -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.