diff options
author | Claire McQuin <claire@getchef.com> | 2014-09-23 13:28:54 -0700 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-09-23 13:28:54 -0700 |
commit | b3ef58b5569c289df86feb1007b27be88608400a (patch) | |
tree | 07e37ac08f3b73fc5ca8e92075934023101f145e /DOC_CHANGES.md | |
parent | 8fb2ef7c795ec3df5c9ab5c91413e32edf758dba (diff) | |
parent | ed907ef4d64027212ceb0c082895b303844ff43f (diff) | |
download | chef-b3ef58b5569c289df86feb1007b27be88608400a.tar.gz |
Merge branch 'master' into mcquin/Issue-1944
Conflicts:
DOC_CHANGES.md
Diffstat (limited to 'DOC_CHANGES.md')
-rw-r--r-- | DOC_CHANGES.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/DOC_CHANGES.md b/DOC_CHANGES.md index c6fe7087c3..736dc4f8a5 100644 --- a/DOC_CHANGES.md +++ b/DOC_CHANGES.md @@ -367,3 +367,30 @@ DNS.3 = systems.example.net IP.1 = 192.168.1.1 IP.2 = 192.168.69.14 ``` + +### Reboot resource in core +The `reboot` resource will reboot the server, a necessary step in some installations, especially on Windows. If this resource is used with notifications, it must receive explicit `:immediate` notifications only: results of delayed notifications are undefined. Currently supported on Windows, Linux, and OS X; will work incidentally on some other Unixes. + +There are three actions: + +```ruby +reboot "app_requires_reboot" do + action :request_reboot + reason "Need to reboot when the run completes successfully." + delay_mins 5 +end + +reboot "cancel_reboot_request" do + action :cancel + reason "Cancel a previous end-of-run reboot request." +end + +reboot "now" do + action :reboot_now + reason "Cannot continue Chef run without a reboot." + delay_mins 2 +end + +# the `:immediate` is required for results to be defined. +notifies :reboot_now, "reboot[now]", :immediate +``` |