Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 6a625304cf
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (48 sloc) 2.465 kB
#
# Cookbook Name:: bootstrap
# Attributes:: bootstrap
#
# Copyright 2008-2010, 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.
#
::Chef::Node.send(:include, Opscode::OpenSSL::Password)
set_unless[:bootstrap][:chef][:umask] = 0022
set_unless[:bootstrap][:chef][:url_type] = "http"
set_unless[:bootstrap][:chef][:init_style] = "runit"
set_unless[:bootstrap][:chef][:path] = "/srv/chef"
set_unless[:bootstrap][:chef][:run_path] = "/var/run/chef"
set_unless[:bootstrap][:chef][:cache_path] = "#{bootstrap[:chef][:path]}/cache"
set_unless[:bootstrap][:chef][:serve_path] = "/srv/chef"
set_unless[:bootstrap][:chef][:server_port] = "4000"
set_unless[:bootstrap][:chef][:webui_port] = "4040"
set_unless[:bootstrap][:chef][:webui_enabled] = false
set_unless[:bootstrap][:chef][:webui_admin_password] = secure_password
set_unless[:bootstrap][:chef][:validation_client_name] = "chef-validator"
set_unless[:bootstrap][:chef][:server_version] = "0.8.4"
set_unless[:bootstrap][:chef][:client_version] = "0.8.4"
set_unless[:bootstrap][:chef][:client_interval] = "1800"
set_unless[:bootstrap][:chef][:client_splay] = "20"
set_unless[:bootstrap][:chef][:log_dir] = "/var/log/chef"
case bootstrap[:chef][:init_style]
when "runit"
set_unless[:bootstrap][:chef][:client_log] = "STDOUT"
set_unless[:bootstrap][:chef][:server_log] = "STDOUT"
set_unless[:bootstrap][:chef][:indexer_log] = "STDOUT"
else
set_unless[:bootstrap][:chef][:client_log] = "#{bootstrap[:chef][:log_dir]}/client.log"
set_unless[:bootstrap][:chef][:server_log] = "#{bootstrap[:chef][:log_dir]}/server.log"
set_unless[:bootstrap][:chef][:indexer_log] = "#{bootstrap[:chef][:log_dir]}/indexer.log"
end
set_unless[:bootstrap][:chef][:server_fqdn] = domain ? "chef.#{domain}" : "chef"
set_unless[:bootstrap][:chef][:server_ssl_req] = "/C=US/ST=Several/L=Locality/O=Example/OU=Operations/CN=#{bootstrap[:chef][:server_fqdn]}/emailAddress=ops@#{domain}"
Jump to Line
Something went wrong with that request. Please try again.