On Wed, Aug 11, 2010 at 9:27 AM, Marc Zampetti <[email protected]> wrote:
>  I want puppet to normally manage the running state of a service, so that if
> the service stops, it is restarted, etc. But during maintenance windows, I
> want puppet to leave the service in whatever state it is in. My idea is to
> have a file that can be checked to see if the service is in maintenance
> mode, and if so, then skip the ensure check.

Do you want all of puppet to be like this? Or do you have a
significant subset of your manifests that you still want applied
during maintenance windows?

You could use tags to identify that subset of resources, and have the
client work out whether it's under a maintenance window or not and
supply the appropriate tag specification to Puppet if so?

>
> To do this, I see two issues.
> 1) How do I test for the existence of a file? The docs don't seem to be able
> to do so. I'm guessing I would need to define a custom fact for that, right?
> 2) How do make it so that the service "ensure" property is correct? Right
> now, it appears that only "running" or "notrunning" is valid. Would
> "ignored" or undef or something like that work?
>
> Is there a better way to achieve what I'm trying to do?
>
> Marc Zampetti
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>



-- 
nigel

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to