This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |