[Puppet Users] Re: Restart service on ensure running ; class dependecies

2012-06-11 Thread jcbollinger
On Jun 8, 8:10 am, Felix Frank wrote: > Hi, > > On 06/08/2012 03:03 PM, jcbollinger wrote: > > > The 'before' is a Puppet metaparameter, so every > > resource type provides it automatically; you would not need to write > > code for it in your definition. > > sadly, this is only half true. > > Ye

Re: [Puppet Users] Re: Restart service on ensure running ; class dependecies

2012-06-08 Thread Felix Frank
Hi, On 06/08/2012 03:03 PM, jcbollinger wrote: > The 'before' is a Puppet metaparameter, so every > resource type provides it automatically; you would not need to write > code for it in your definition. sadly, this is only half true. Yes, you can specify before, requires etc. to all instances of

[Puppet Users] Re: Restart service on ensure running ; class dependecies

2012-06-08 Thread jcbollinger
On Jun 7, 8:45 am, Andrei-Florian Staicu wrote: > On Thu, Jun 7, 2012 at 4:03 PM, jcbollinger wrote: [...] > > This is what resource relationships are for.  A good use in this case > > would be for each declaration of a network::device instance to specify > > a 'before' parameter.  For example,

Re: [Puppet Users] Re: Restart service on ensure running ; class dependecies

2012-06-07 Thread Andrei-Florian Staicu
On Thu, Jun 7, 2012 at 4:03 PM, jcbollinger wrote: > > > On Jun 6, 12:33 pm, Andrei-Florian Staicu > wrote: >> First, for services that have ensure=>runnig and for which "service >> bla status" returns not running, can puppet be convinced to call >> "service bla restart" instead of "service bla s

[Puppet Users] Re: Restart service on ensure running ; class dependecies

2012-06-07 Thread jcbollinger
On Jun 6, 12:33 pm, Andrei-Florian Staicu wrote: > First, for services that have ensure=>runnig and for which "service > bla status" returns not running, can puppet be convinced to call > "service bla restart" instead of "service bla start"? That's a very odd request. If the service is indeed