Sha256: d06e0caafa4d9b6d098fffec25f20a93d5dbdf335be4836b1820f3ce0577c2ff
Contents?: true
Size: 993 Bytes
Versions: 7
Compression:
Stored size: 993 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 -qy update apt-get -qy 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' gem 'mime-types', '< 2.0.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
7 entries across 7 versions & 1 rubygems