Issue #13054 has been updated by Sean Millichamp.

Branch changed from https://github.com/puppetlabs/puppet/pull/574 to 
https://github.com/puppetlabs/puppet/pull/642

After discussion and some adjustments I have rebased the commits and made a new 
pull request at https://github.com/puppetlabs/puppet/pull/642

For reference, the prior pull request was 
https://github.com/puppetlabs/puppet/pull/574

----------------------------------------
Feature #13054: Allow schedule type's "range" parameter to span days
https://projects.puppetlabs.com/issues/13054#change-59791

Author: Sean Millichamp
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: Patrick Carlisle
Category: schedule
Target version: 
Affected Puppet version: 
Keywords: schedule range
Branch: https://github.com/puppetlabs/puppet/pull/642


Currently, if you had to specify a 10 PM until 4 AM change window every night 
in a schedule you could do:
<pre>
schedule { 'maintenance_window':
  range => [ '22:00 - 23:59', '00:00 - 04:00' ]
}
</pre>

However, a common and more natural way of expressing this would be something 
like:
<pre>
schedule { 'maintenance_window':
  range => '22:00 - 04:00'
}
</pre>

Furthermore, with the addition of day-of-the-week schedule parameter added in 
https://projects.puppetlabs.com/issues/10328 there is currently no way to 
specify a 10 PM - 4 AM maintenance window that only can occur starting at 10 PM 
on Saturday and ending at 4 AM on Sunday.  To address a schedule like this, the 
following schedule should be supported:
<pre>
schedule { 'limited_maintenance_window':
  weekday => 'Saturday',
  range => '22:00 - 04:00'
}
</pre>
That is, consider this a valid schedule for the range starting at 10 PM 
Saturday and lasting over the midnight boundary to the following 4 AM on Sunday.



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