O'Reilly logo

Learning Puppet for Windows Server by Fuat Ulugay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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': ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required