Sha256: 42a15919156589f9f234c5f8554c1f28bfaeb52693f75694b8c843a8a06abff6

Contents?: true

Size: 987 Bytes

Versions: 37

Compression:

Stored size: 987 Bytes

Contents

#!/bin/env bash
<%= ZTK::Template.do_not_edit_notice(:message => "Chef OmniBus Bootstrap") %>
set -x
set -e

export DEBIAN_FRONTEND="noninteractive"
export SUDO_USER="<%= @sudo_user %>"
export SUDO_UID="<%= @sudo_uid %>"
export SUDO_GID="<%= @sudo_gid %>"
export HOME="<%= @home_dir %>"

export

cd /tmp

apt-get -y --force-yes update
apt-get -y --force-yes install ca-certificates ruby1.8 rubygems

mkdir -pv /etc/chef/

cat <<EOF | tee /tmp/Gemfile
source 'https://rubygems.org'
gem 'chef', '<%= @chef[:client][:version] %>'
gem 'moneta', '< 0.7.0'
EOF

gem install bundler --no-ri --no-rdoc
bundle install

update-alternatives --install /usr/bin/chef-client chef-client /usr/local/bin/chef-client 500

cat <<EOF | tee /etc/chef/attributes.json
<%= @chef[:client][:attributes].to_json %>
EOF

cat <<EOF | tee /etc/chef/validation.pem
<%= @validation_pem %>
EOF

cat <<EOF | tee /etc/chef/client.rb
<%= @chef_client_rb %>
EOF

<%= @chef_client_cli %>

touch /.ruby-gem-client-provision

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
testlab-1.11.0 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.10.0 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.9.2 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.9.1 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.9.0 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.8.5 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.8.4 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.8.3 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.8.2 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.8.1 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.8.0 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.7.1 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.7.0 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.6.6 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.6.5 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.6.4 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.6.3 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.6.2 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.6.1 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb
testlab-1.6.0 lib/testlab/provisioners/templates/chef/ruby_gem_client.erb