Skip to content

Instantly share code, notes, and snippets.

@chris-gilmore
chris-gilmore / bootstrap-chef-server.sh
Created March 29, 2011 08:42
Bootstrap Chef Server
# references
# http://wiki.opscode.com/display/chef/Bootstrap+Chef+RubyGems+Installation
# http://wiki.opscode.com/display/chef/Launch+Cloud+Instances+with+Knife
$ cat <<EOF | sudo tee /etc/hosts
127.0.0.1 chef.example.com chef localhost
EOF
$ echo chef | sudo tee /etc/hostname
$ sudo apt-get -y update
$ sudo apt-get -y upgrade
@chris-gilmore
chris-gilmore / setup-chef-repo.sh
Created March 27, 2011 09:09
Setup Chef Repo
# references
# http://wiki.opscode.com/display/chef/Chef+Repository
# http://blog.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/
# on laptop
$ sudo gem install chef
$ sudo gem install net-ssh net-ssh-multi highline fog
$ mkdir ~/git
$ cd ~/git