Issue #10328 has been updated by Sean Millichamp.

Status changed from Unreviewed to In Topic Branch Pending Review
Assignee set to Sean Millichamp
Keywords set to schedule weekday

Patch with tests in Github pull-request:

Commit: 
https://github.com/seanmil/puppet/commit/0f9a82a89f89764621d03008d13a7602c4503bf5

Pull: https://github.com/puppetlabs/puppet/pull/184

----------------------------------------
Feature #10328: Schedule type should support selecting days of the week
https://projects.puppetlabs.com/issues/10328

Author: Sean Millichamp
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: Sean Millichamp
Category: schedule
Target version: 
Affected Puppet version: development
Keywords: schedule weekday
Branch: master


The schedule type should support the ability to select which days of the week 
the schedule would be considered valid.

The use case where this would be for a system that has a limited change window 
to a particular day of the week.  For example, a production system which only 
has a change window from midnight to 6 AM Saturday and Sunday should be able to 
express a schedule similar to:

schedule { 'production_change':
    range => '00:00:00 - 06:00:00',
    weekday => [ 'Sat', 'Sun' ],
}

Right now there is no simple way to express such a change window in Puppet, 
adding support to the schedule type seems like the most appropriate approach.

I propose adding a "weekday" parameter to the schedule type. It would take 
either a string or an array of strings containing the days of the week in which 
the schedule is valid.

I have a patch that is almost finished implementing this that I can push to 
Github if the idea is approved.



-- 
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