-2

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.

daff
  • 4,809
  • 2
  • 28
  • 27
user361402
  • 1
  • 1
  • 1

1 Answers1

2

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.

KingBob
  • 153
  • 9