#!/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 <' 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 cat < EOF cat < EOF <%= @chef_client_cli %> touch /.ruby-gem-client-provision