Sha256: afa9ac4b8669ccda7141bce1d5ffce3a7c2bd6413de185f2b809016ca7a5665c
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 KB
Contents
bash -c ' if [ ! -f /usr/bin/chef-client ]; then echo "chef chef/chef_server_url string <%= Chef::Config[:chef_server_url] %>" | debconf-set-selections [ -f /etc/apt/sources.list.d/opscode.list ] || echo "deb http://apt.opscode.com lucid main" > /etc/apt/sources.list.d/opscode.list wget -O- http://apt.opscode.com/packages@opscode.com.gpg.key | apt-key add - apt-get update apt-get install -y chef fi <% unless Chef::Config[:validation_client_name] == "chef-validator" -%> [ `grep -qx "validation_client_name \"<%= Chef::Config[:validation_client_name] %>\"" /etc/chef/client.rb` ] || echo "validation_client_name \"<%= Chef::Config[:validation_client_name] %>\"" >> /etc/chef/client.rb <% end -%> ( 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 <% if @config[:chef_node_name] %> [ `grep -qx "node_name \"<%= @config[:chef_node_name] %>\"" /etc/chef/client.rb` ] || echo "node_name \"<%= @config[:chef_node_name] %>\"" >> /etc/chef/client.rb <% end -%> ( 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chef-0.9.8 | lib/chef/knife/bootstrap/ubuntu10.04-apt.erb |
chef-0.9.8.rc.0 | lib/chef/knife/bootstrap/ubuntu10.04-apt.erb |
chef-0.9.8.beta.2 | lib/chef/knife/bootstrap/ubuntu10.04-apt.erb |