Skip to content

Instantly share code, notes, and snippets.

@essjayhch
Created March 19, 2015 18:31
Show Gist options
  • Save essjayhch/f73e3fead1cd63cd8018 to your computer and use it in GitHub Desktop.
Save essjayhch/f73e3fead1cd63cd8018 to your computer and use it in GitHub Desktop.
#!/bin/bash
ssh -l root $1 "echo $2 > /etc/nodename; echo $1 $2 >> /etc/hosts; pkgin -y upgrade; pkgin -y in build-essential; pkgin -y in ruby-2.1.4; gem install chef --no-ri --no-rdoc; init 6"
sleep 10
knife bootstrap $1 -r 'role[chef-client]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment