Sha256: 716de320a7feb12a92da6e18bfc45a5c1e6c571927b7fff0d83667eb7778b127

Contents?: true

Size: 1.04 KB

Versions: 12

Compression:

Stored size: 1.04 KB

Contents

bash -c '
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
rpm -Uvh http://download.elff.bravenet.com/5/i386/elff-release-5-3.noarch.rpm

yum install -q -y ruby ruby-devel gcc gcc-c++ automake autoconf rubygems make

gem update --system
gem update
gem install ohai chef --no-rdoc --no-ri --verbose <%= '--prerelease' if @config[:prerelease] %>

mkdir -p /etc/chef

(
cat <<'EOP'
<%= IO.read(Chef::Config[:validation_key]) %>
EOP
) > /tmp/validation.pem
awk NF /tmp/validation.pem > /etc/chef/validation.pem
rm /tmp/validation.pem

(
cat <<'EOP'
log_level        :info
log_location     STDOUT
chef_server_url  "<%= Chef::Config[:chef_server_url] %>"
validation_client_name "<%= Chef::Config[:validation_client_name] %>"
<% if @config[:chef_node_name] == nil %>
# Using default node name"
<% else %>
node_name "<%= @config[:chef_node_name] %>"
<% end %> 
EOP
) > /etc/chef/client.rb

(
cat <<'EOP'
<%= { "run_list" => @run_list }.to_json %>
EOP
) > /etc/chef/first-boot.json

/usr/bin/chef-client -j /etc/chef/first-boot.json'

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
mbailey-chef-0.9.12.2 lib/chef/knife/bootstrap/centos5-gems.erb
mbailey-chef-0.9.12.1 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.9.12 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.9.10 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.9.10.rc.3 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.9.10.rc.2 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.9.10.rc.1 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.9.10.rc.0 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.9.8 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.9.8.rc.0 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.9.8.beta.2 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.9.8.beta.1 lib/chef/knife/bootstrap/centos5-gems.erb