Sha256: d5b835cb7b17764fa8bf51f4c2ab64b2de6a64d1471547c15c348cf6b3902286

Contents?: true

Size: 989 Bytes

Versions: 4

Compression:

Stored size: 989 Bytes

Contents

bash -c '
if [ ! -f /usr/bin/chef-client ]; then
  rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  wget -O /etc/yum.repos.d/aegis.repo http://rpm.aegisco.com/aegisco/el5/aegisco.repo

  yum install -y ruby-1.8.7.334-2.el5 ruby-devel-1.8.7.334-2.el5 gcc gcc-c++ automake autoconf make

  cd /tmp
  wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
  tar zxf rubygems-1.3.7.tgz
  cd rubygems-1.3.7
  ruby setup.rb --no-format-executable
fi

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

mkdir -p /etc/chef

(
cat <<'EOP'
<%= validation_key %>
EOP
) > /tmp/validation.pem
awk NF /tmp/validation.pem > /etc/chef/validation.pem
rm /tmp/validation.pem

(
cat <<'EOP'
<%= config_content %>
EOP
) > /etc/chef/client.rb

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

<%= start_chef %>'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chef-0.10.2 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.10.0.qs.1 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.10.0.qs.0 lib/chef/knife/bootstrap/centos5-gems.erb
chef-0.10.0 lib/chef/knife/bootstrap/centos5-gems.erb