Issue #11039 has been updated by Tom De Vylder.

That certainly seems to cover my needs.
Thanks a bunch!
----------------------------------------
Feature #11039: exec timeframe
https://projects.puppetlabs.com/issues/11039

Author: Tom De Vylder
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Hi all,

I'd like to request a feature to allow exec only to run during a certain 
timeframe.
It's not feasible to use cron for such tasks if it has to happen *during* a 
puppet run.

E.g.:
- Icinga config files should be flushed during non-working hours and be rebuilt 
later on during the puppet run. 
(due to nagios_* architectural issues)
- apt-get update should only be allowed to run between 01:00AM and 03:00AM.


I was thinking of a syntax along the lines of the current cron syntax:

exec { 'flush configs':
  command => 'rm -rf /etc/icinga/*/puppet-*.cfg',
  hour    => ['2-4'];
}



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to