The Saturday after patch Tuesday (which is the second Tuesday of the month), I want to install updates via puppet. For this, I made a scheduled task with the following trigger:
$trigger = {
schedule => monthly,
start_time => '13:15',
which_occurrence => second,
day_of_week => [sat],
minutes_interval => '80',
minutes_duration => '560',
}
However, the issue comes on months like this where the second Saturday comes AFTER the second Tuesday. Is there some way to solve this in Puppet?
It might be possible to count the days after patch Tuesday. However, this would require Puppet to be able to get the date of every second Tuesday of the month (which it can't AFAIK).