Issue #10328 has been updated by Sean Millichamp.

Jo,

If there is any backporting work required at all (it may just cleanly apply, 
last I looked the schedule type hadn't changed all that much) I'm happy to do 
it IF you can get someone from Puppet Labs to promise to accept it into the 2.7 
tree. I don't want to spend any time on it otherwise.

As a note: if you get agreement to get this backported it makes a lot of sense 
to me to also backport #13054

Cheers,

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

Author: Sean Millichamp
Status: Merged - Pending Release
Priority: Normal
Assignee: Sean Millichamp
Category: schedule
Target version: 3.0.0
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