[Puppet Users] Re: conditional restart of service

2009-11-13 Thread Jason Lavoie
On 11/13, Luke Kanies wrote: > On Nov 12, 2009, at 11:58 AM, Jason Lavoie wrote: > > Shouldn't the "Skipping because of failed dependencies" in the output > > below be absolute? Why is puppet still refreshing the Service[dep] > > (in the very next log line)? Am I misunderstanding how the > > d

[Puppet Users] Re: conditional restart of service

2009-11-13 Thread Luke Kanies
On Nov 12, 2009, at 11:58 AM, Jason Lavoie wrote: > > On 10/29, Peter Meier wrote: >>> I'm trying to have a exec dependency on a service object that >>> would keep >>> it from being restarted if the exec fails. Unfortunately, the >>> service >>> gets refreshed regardless whenever the exec is

[Puppet Users] Re: conditional restart of service

2009-11-13 Thread Jason Lavoie
On 11/13, Peter Meier wrote: > > Shouldn't the "Skipping because of failed dependencies" in the output > > below be absolute? Why is puppet still refreshing the Service[dep] > > (in the very next log line)? Am I misunderstanding how the dependencies > > should work? > > hmm, which version are y

[Puppet Users] Re: conditional restart of service

2009-11-13 Thread Peter Meier
Hi > Shouldn't the "Skipping because of failed dependencies" in the output > below be absolute? Why is puppet still refreshing the Service[dep] > (in the very next log line)? Am I misunderstanding how the dependencies > should work? hmm, which version are you running? > err: //Exec[check-dep]

[Puppet Users] Re: conditional restart of service

2009-11-12 Thread Jason Lavoie
On 10/29, Peter Meier wrote: > > I'm trying to have a exec dependency on a service object that would keep > > it from being restarted if the exec fails. Unfortunately, the service > > gets refreshed regardless whenever the exec is run, failure or not. [...] > > don't set the command to refreshon

[Puppet Users] Re: conditional restart of service

2009-10-29 Thread Jason Lavoie
On 10/29, Carl Caum wrote: > > Not to say "You're doing this all wrong!", but wouldn't this best be > handled in the init script? You can put it under puppet control. I _knew_ someone would say that. :) In fact, for this particular example I gave, the Debian init scripts already do the conf

[Puppet Users] Re: conditional restart of service

2009-10-29 Thread Carl Caum
Not to say "You're doing this all wrong!", but wouldn't this best be handled in the init script? You can put it under puppet control. On Oct 29, 2009, at 3:39 PM, Jason Lavoie wrote: > > I'm trying to have a exec dependency on a service object that would > keep > it from being restarted if

[Puppet Users] Re: conditional restart of service

2009-10-29 Thread Peter Meier
Hi > I'm trying to have a exec dependency on a service object that would keep > it from being restarted if the exec fails. Unfortunately, the service > gets refreshed regardless whenever the exec is run, failure or not. > > I've tried various combinations of subscribe/require/notify, but can't