Sha256: 7ce71a2b4b3222c9495568a2fabe0e69ac6f63efe8bb33d1a5f7095d6278c028

Contents?: true

Size: 1.25 KB

Versions: 12

Compression:

Stored size: 1.25 KB

Contents

bash -c '
if [ ! -f /usr/bin/chef-client ]; then
  pacman -Syy
  pacman -S --noconfirm ruby ntp base-devel
  ntpdate -u pool.ntp.org
  gem install ohai chef --no-rdoc --no-ri --verbose <%= '--prerelease' if @config[:prerelease] %>
fi

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 (fqdn)
<% else %>
node_name "<%= @config[:chef_node_name] %>"
<% end %> 
<% if Chef::Config[:environment] != nil %>
environment "<%= Chef::Config[:environment]%>"
<% end %>
# ArchLinux follows the Filesystem Hierarchy Standard
file_cache_path    "/var/cache/chef"
file_backup_path   "/var/lib/chef/backup"
pid_file           "/var/run/chef/client.pid"
cache_options({ :path => "/var/cache/chef/checksums", :skip_expires => true})
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
chef-0.10.0.beta.10 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.0.beta.9 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.0.beta.8 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.0.beta.7 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.0.beta.6 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.0.beta.5 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.0.beta.4 lib/chef/knife/bootstrap/archlinux-gems.erb
TrueCar-chef-0.10.0.beta.3 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.0.beta.3 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.0.beta.2 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.0.beta.1 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.0.beta.0 lib/chef/knife/bootstrap/archlinux-gems.erb