I want to reboot the system using puppet by using reboot resource but it is throwing error like "Invalid resource type: Reboot"?.
Is there any need modules that I need to install??. please help me.
I want to reboot the system using puppet by using reboot resource but it is throwing error like "Invalid resource type: Reboot"?.
Is there any need modules that I need to install??. please help me.
PuppetLabs provide a reboot module.
Install it on your Puppet Master using the command-line:
$ puppet module install puppetlabs-reboot
Then call it in your manifests:
package { 'SomeModule':
ensure => installed,
source => '\\server\share\some_installer.exe',
install_options => ['/Passive', '/NoRestart'],
}
reboot { 'after':
subscribe => Package['SomeModule'],
}
See the documentation for a better understanding of how it works.