I'm using Puppet to help some third party updates happen on my fleet of
Windows 7 computers. Part of that is rebooting if there is a reboot pending
before trying to install third party updates to try and sidestep the 1603
MSI errors. I have a schedule when this can happen.
schedule { 'standard_updates':
range => '02:00 - 12:00',
weekday => 'Tuesday',
}
reboot { 'before':
when => pending,
schedule => 'standard_updates',
noop => $noreboot,
}
package { $generalwindowspackages:
ensure => latest,
provider => 'chocolatey',
schedule => 'standard_updates',
require => Reboot['before'],
}
package { $additionalwindowspackages:
ensure => latest,
provider => 'chocolatey',
schedule => 'standard_updates',
require => Reboot['before'],
}
Now, my understanding in the documentation is that this will only apply the
reboot from 2AM-Noon Tuesdays. It also defaults to only applying it 1 time
in a period. What I'm not sure is if that is per package that requires it
or not. What's quite odd to me is that today I had 2 instances of Puppet
rebooting some computers because of a pending reboot, once at the beginning
of the scheduled period and once about 6 hours later. Now they were both
during the schedule, but it seems like it should not have applied the
reboot again. If it was going to reboot again, why wouldn't it have done so
at the very next puppet run? How should I express that it should only
reboot once during the scheduled period?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/3f1a603e-2d5e-4990-a0a9-80541da58f1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.