Sha256: 8fe97f2b7b701e8285fa2486e1cb728fddb0afc23d63c2fdf68c1e49edcaf4ff
Contents?: true
Size: 613 Bytes
Versions: 5
Compression:
Stored size: 613 Bytes
Contents
#!/bin/bash set -e cd /root apt-get update apt-get install -ymq zsh git libssl-dev ruby1.9.1-full build-essential curl -LO https://www.getchef.com/chef/install.sh bash install.sh -v <%= chef_version %> cat << 'EOFKEY' > /root/.ssh/id_rsa <%= initkey %> EOFKEY chmod 600 /root/.ssh/id_rsa echo 'StrictHostKeyChecking no' > /root/.ssh/config git clone -b <%= chef_branch %> <%= chef_repo %> /root/ops echo '<%= json %>' > /root/init.json chef-solo -c /root/ops/cookbooks/init.rb -j /root/init.json -E <%= chef_environment %> && \ (rm /root/.ssh/id_rsa; userdel -r ubuntu; rm -rf /root/.ssh; rm -rf /root/ops)
Version data entries
5 entries across 5 versions & 1 rubygems