Sha256: 586d266e4465f678e8ce2dc54e4da3cc06fa77e73246f454ee543b322bb8a9c5

Contents?: true

Size: 1.38 KB

Versions: 7

Compression:

Stored size: 1.38 KB

Contents

bash -c '
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>

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

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'
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] -%>
node_name "<%= @config[:chef_node_name] %>"
<% else -%>
# Using default node name (fqdn)
<% 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})
<% if knife_config[:bootstrap_proxy] %>
http_proxy         "<%= knife_config[:bootstrap_proxy] %>"
https_proxy        "<%= knife_config[:bootstrap_proxy] %>"
<% end -%>
EOP
) > /etc/chef/client.rb

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

<%= start_chef %>'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chef-0.10.4 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.4.rc.6 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.4.rc.5 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.4.rc.4 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.4.rc.3 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.4.rc.2 lib/chef/knife/bootstrap/archlinux-gems.erb
chef-0.10.4.rc.1 lib/chef/knife/bootstrap/archlinux-gems.erb