I am not necessarily condoning this, but puppet has a "schedule"
metaparameter that can control when a resource may be managed.  That
would solve half the problem.  You could probably manage it in the
other state using the same trick, but you have to "trick" puppet by
giving the resource another name.

- Chad

On Thu, Apr 9, 2015 at 1:26 AM, Gabriel Filion <gabs...@lelutin.ca> wrote:
> Hello,
>
> A client of mine needs to be able to control which hours during the day
> a certain daemon is running and which hours it is not.
>
> So far I can think of hiera for controlling the on/off periods + some
> math magic to determine in the puppet manifests whether we are currently
> in the On or Off period (which would ensure either "running" or "stopped").
>
> The other option could be a custom fact (which would make manifests less
> complicated), but I'm unsure of how control over the on/off time periods
> could be achieved in this case.
>
> Am I more or less on to something with the above or am I trying to do
> something with the wrong tool? One of the downsides of using puppet is
> that runs are only once per hour (in that case) so the starting and
> stopping times might be unreliable :\
>
> --
> Gabriel Filion
>
> --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/55260D86.2070200%40lelutin.ca.
> For more options, visit https://groups.google.com/d/optout.



-- 
Chad M. Huneycutt

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAOJfo16yQcy1O7yF4CE8ygfZNWHs%2BR6hVd%2BvhC7eE0Bg5dneSA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to