Skip to content

autrejacoupa/rightscale-chef-client-11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RightScale Chef Server and Client Cookbook

DESCRIPTION:

This cookbook provides recipes for setting up and running a Chef Client.

REQUIREMENTS:

  • Requires a VM launched from a RightScale managed RightImage

  • Tested on the following RightImages: CentOS 6.3, Ubuntu 12.04

  • Tested Chef Client version 10.24.0-1

COOKBOOKS DEPENDENCIES:

Please see metadata.rb file for the latest dependencies.

  • rightscale

KNOWN LIMITATIONS:

There are no known limitations.

SETUP/USAGE:

  • When using a RightScale ServerTemplate, place chef::install_client recipe into your runlist to setup the Chef Client. Set server_url, validator_pem and validation_name to match the Chef Server configuration.

  • Set inputs reconverge_list to the value chef::do_client_converge and interval to minutes.

For more info see: Release Notes

DETAILS:

General

The cookbook installs the Chef Client with needed configuration for CentOS and Ubuntu.

Attributes:

These are the settings used in recipes and templates. Default values are noted.

  • node[:chef][:client][:version]- The package version. Default: "10.24.0-1"
  • node[:chef][:client][:config_dir]- The Chef Client config directory. Default: "/etc/chef"
  • node[:chef][:client][:server_url]- The url to connect to the remote Chef Server.
  • node[:chef][:client][:validator_pem]- Private ssh key to register the Chef Client with the Chef Server.
  • node[:chef][:client][:validation_name]- Validation name, along with the private ssh key, is used to determine whether the Chef Client may register with the Chef Server. The validation_name located on the Server and in the Client configuration file must match.
  • node[:chef][:client][:node_name]- The node's name to register on the Chef Server.
  • node[:chef][:client][:roles]- Comma separated list of roles which will be applied to this instance. Roles should be defined on the Chef Server else recipe will fail.
  • node[:chef][:client][:environment]- The Chef Server environment name. By default the Chef Client environment variable is set to "_default".
  • node[:chef][:client][:company]- Company name to be set in the Client configuration file. This attribute is applicable for Opscode Hosted Chef Server. The company name specified in both the Server and the Client configuration file must match.
  • chef/client/runlist_override- A custom JSON string to be added to the first run of chef-client.

Templates:

  • client.rb.erb- The Chef Client configuration file. Used in chef::install_client recipe.
  • validation_key.erb- Private SSH key which will be used to authenticate the Chef Client on the remote Chef Server. Used in chef::install_client and chef::do_client_converge recipes.
  • runlist.json.erb- The Chef Client runlist.json file. Defined in setup_runlist definition and used in chef::install_client and chef::do_client_converge recipes.

Usage Example:

Update and execute runlist.

  • chef::do_client_converge This recipe is used in the operational phase only. It runs runlist from file. To update the roles user can provide new roles as input and run the recipe. Roles to be used should be available on the Chef Server.

Chef Client Reconvergence

  • sys::do_reconverge_list_enable This recipe is used in the boot and operational phase. It starts a periodic reconverge.

  • sys::do_reconverge_list_disable This recipe is used in the operational phase. It stops a periodic reconverge.

LICENSE:

Copyright RightScale, Inc. All rights reserved. All access and use subject to the RightScale Terms of Service available at http://www.rightscale.com/terms.php and, if applicable, other agreements such as a RightScale Master Subscription Agreement.

About

Partial change from git@github.com:autrejacoupa/rightscale_cookbooks.git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published