Skip to content

Instantly share code, notes, and snippets.

@sheldonh
Created January 15, 2015 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheldonh/04b39a94ee32452defc0 to your computer and use it in GitHub Desktop.
Save sheldonh/04b39a94ee32452defc0 to your computer and use it in GitHub Desktop.
recipes/reboot-if-required.rb
execute "reboot" do
only_if { ::File.exists?("/var/run/reboot-required") }
node.run_state['reboot'] = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment