Sha256: ec872eac0ce4396d82e8bd2a2b2ffe30ae9a7d49a0256cf7aaba91ecead374c2

Contents?: true

Size: 1.2 KB

Versions: 25

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 -
fi
apt-get update
apt-get install -y chef

<% 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

25 entries across 25 versions & 4 rubygems

Version Path
naked-chef-0.9.15.3 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.10.0.beta.9 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.10.0.beta.8 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.10.0.beta.7 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.10.0.beta.6 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.10.0.beta.5 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.10.0.beta.4 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
TrueCar-chef-0.10.0.beta.3 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.10.0.beta.3 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.10.0.beta.2 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.10.0.beta.1 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.10.0.beta.0 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
naked-chef-0.9.15.2 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
naked-chef-0.9.15.1 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.9.14 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.9.14.rc.1 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
mbailey-chef-0.9.12.2 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.9.14.beta.1 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
mbailey-chef-0.9.12.1 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
chef-0.9.12 lib/chef/knife/bootstrap/ubuntu10.04-apt.erb