Re: [Puppet Users] Applying a resource only if not within a schedule

2013-02-08 Thread Jo Rhett
You could make a notify that also receives the same trigger with an opposite schedule. On Feb 7, 2013, at 2:40 PM, ad wrote: I have a custom resource type that upgrades a MSI and kicks off a reboot. It uses a schedule parameter (configurable through an ENC) so we can control when the node

Re: [Puppet Users] Applying a resource only if not within a schedule

2013-02-08 Thread ad
The schedule is a variable defined by our ENC. It varies depending on hostgroup/node. This approach would work but I'd have to write a custom function that knows how to convert a schedule. Adam On Friday, February 8, 2013 2:50:47 PM UTC-6, Jo wrote: You could make a notify that also receives

[Puppet Users] Applying a resource only if not within a schedule

2013-02-07 Thread ad
I have a custom resource type that upgrades a MSI and kicks off a reboot. It uses a schedule parameter (configurable through an ENC) so we can control when the node is allowed to reboot. I'd like to add a notify (or call warn()) if not within the schedule, e.g. Skipping ensure version of MSI