afterglow / chef-reboot Goto Github PK
View Code? Open in Web Editor NEWProvide a very simple means to reboot a server from a chef cookbook using a chef_handler
Provide a very simple means to reboot a server from a chef cookbook using a chef_handler
I'm looking for a quick script to reboot a box for me and I noticed this repo isn't on Supermarket. There is only https://supermarket.getchef.com/cookbooks/reboot-handler
I like your one better because it seems simpler ๐
Steps:
added to the runlist
recipe[chef-reboot]"
Added to another recipe of another cookbook
node[:reboot][:auto_reboot] = 0
I get the following error:
undefined method `[]=' for nil:NilClass
1:
2:
3:
4:
5>> node[:reboot][:auto_reboot] = 0
6:
Hi!
Thanks for this cookbook. It works for me, but I can't successfully override node.run_state[:reboot_delay]
in reboot_handler.rb
.
In my recipe, I'm trying to set this two ways:
node.run_state[:reboot_delay] = 0
and
ruby_block "set reboot delay" do
block do
node.run_state[:reboot_delay] = 0
Chef::Log.info "Setting reboot delay to #{node.run_state[:reboot_delay]}"
end
end
After one of these two lines, I of course include the recipe with include_recipe "reboot"
.
I'm pretty new to Chef (so forgive my ignorance), but do you know why this isn't working? I'm trying to set the reboot_delay to 0, but it keeps defaulting to 2 minutes in reboot_handler.rb
.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.