Sha256: 27a729e5f4a1e6d1e2dd448dd1b040dc405d8393ffadc92ea145f07413491bc6

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

apt-get install -y zsh git libssl-dev ruby1.9.1-full build-essential
gem install --bindir /usr/local/bin --no-ri --no-rdoc chef
cat << 'EOFKEY' > /root/.ssh/id_rsa
<%=@redis.hget('config', 'initkey')%>
EOFKEY
chmod 600 /root/.ssh/id_rsa
echo 'StrictHostKeyChecking no' > /root/.ssh/config
git clone -b <%=@redis.hget('config', 'chefbranch')%> <%=@redis.hget('config', 'chefrepo')%> /root/ops
echo '<%=@json%>' > /root/init.json
chef-solo -c /root/ops/cookbooks/init.rb -j /root/init.json && (rm /root/.ssh/id_rsa; userdel -r ubuntu; rm -rf /root/.ssh; rm -rf /root/ops; rm -rf /root/init.json)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gaptool-server-0.1.1 lib/gaptool-server/views/init.erb
gaptool-server-0.1.0 lib/gaptool-server/views/init.erb