Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Reboot-handler Chef Cookbook
Ruby
branch: master

This branch is 8 commits ahead, 66 commits behind retr0h:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
attributes
files/default
recipes
spec
.foodcritic-rules
.gitignore
.gitreview
.travis.yml
Berksfile
Berksfile.lock
Gemfile
Gemfile.lock
LICENSE
README.md
metadata.rb

README.md

Build Status

Description

Installs/Configures reboot-handler

Allows one to reboot the server after a successfull chef run, while in a given role.

Requirements

  • Chef 10.12.0+

chef_handler

Installs/Configures chef-handler

Attributes

  • default['reboot-handler']['reboot_command'] - Reboot command to execute.
  • default['reboot-handler']['enabled_role'] - Role to enable the handler on (default: booted).
  • default['reboot-handler']['post_boot_runlist'] - If set will redefine node['run_list'] to it's value.

Usage

"run_list": [
    "recipe[reboot-handler]"
]

Simply set the following attribute while chef is executing.

node.run_state['reboot'] = true

default

Installs/Configures reboot-handler

Testing

See SilverLining documentation

License and Author

Author:: John Dewey (john@dewey.ws)

Copyright 2012-2014, John Dewey

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Something went wrong with that request. Please try again.