/chef-zero-1

Primary LanguageRubyApache License 2.0Apache-2.0

Chef Zero Cookbook

A cookbook for managing Chef Zero installation (as a service).

Recent version of Chef include Chef Zero, but this cookbook provides more flexibility and control over the version and allows you to start Chef Zero as a system service.

Installation

Add chef-zero to your Berksfile:

cookbook 'chef-zero', '~> 1.0'

Or you can install it directly with knife:

$ knife cookbook site install chef-zero

Usage

Add the cookbook to your run_list in a node or role:

"run_list": [
  "recipe[chef-zero::default]"
]

Or include it in a recipe:

# other_cookbook/metadata.rb
# ...
depends 'chef-zero'
# other_cookbook/recipes/default.rb
# ...
include_recipe 'chef-zero::default'

Attributes

Attribute Description Example Default
version version of the chef-zero gem to install 1.3 1.4
install install the chef-zero gem false false
start start chef-zero as a system service false false
daemon name of the daemon fake-chef chef-zero
host the host to listen on 192.168.4.4 0.0.0.0
port the port to listen on 5678 80
generate_real_keys generate real keys false false

License & Authors

Copyright 2013 Seth Vargo <sethvargo@gmail.com>
Copyright 2013 Opscode, Inc

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.