Sha256: 55fb123d8028c0a74e0714ef9befc78a1f90d450e4fc2f0352f78254377d9199

Contents?: true

Size: 832 Bytes

Versions: 20

Compression:

Stored size: 832 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 install wget ca-certificates || yum -y install wget ca-certificates
rm -fv /tmp/install.sh
wget -v https://www.opscode.com/chef/install.sh -O /tmp/install.sh
/bin/bash /tmp/install.sh -v <%= @chef[:client][:version] %>

mkdir -pv /etc/chef/

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 /.omni-bus-bootstrap

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
testlab-0.9.1 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.9.0 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.8.6 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.8.5 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.8.4 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.8.3 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.8.2 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.8.1 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.8.0 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.7.6 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.7.5 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.7.4 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.7.3 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.7.2 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.7.1 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.7.0 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.6.17 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.6.16 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.6.15 lib/testlab/provisioners/templates/chef/omni_bus.erb
testlab-0.6.14 lib/testlab/provisioners/templates/chef/omni_bus.erb