The reboot module
This module adds a type to reboot Windows and Linux systems. It is supported by Puppet Enterprise. We possibly need time to reboot our systems. We cannot use reboot without any conditions. Otherwise, each run will cause a reboot and everybody will start complaining about the reboots. So, it is a good practice to limit these with a notice
or register
option.
The URL for the puppetlabs/reboot
module is https://forge.puppetlabs.com/puppetlabs/reboot. To install this, simply run the following command on a terminal:
$ sudo puppet module install puppetlabs-reboot
Following is a sample reboot
definition. In this example, the reboot
subscribes to a file creation. Whenever testfile.txt
is created, it will trigger the reboot
:
reboot { 'name': ...
Get Learning Puppet for Windows Server now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.