Sha256: e8e346beb5006daed738631ac15b79c35d8c15b5cc67bb810346e1644fe85fa3

Contents?: true

Size: 926 Bytes

Versions: 4

Compression:

Stored size: 926 Bytes

Contents

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

gem update --system
gem update
gem install ohai --no-rdoc --no-ri --verbose
gem install chef --no-rdoc --no-ri --verbose <%= bootstrap_version_string(:gems) %>

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

4 entries across 4 versions & 2 rubygems

Version Path
chef-0.9.18 lib/chef/knife/bootstrap/fedora13-gems.erb
rmm-chef-0.10.0.rc.0 lib/chef/knife/bootstrap/fedora13-gems.erb
chef-0.10.0.rc.0 lib/chef/knife/bootstrap/fedora13-gems.erb
chef-0.9.16 lib/chef/knife/bootstrap/fedora13-gems.erb