Automaticlly replay the process of Quick Start on Chef wiki.
If you really want to give it a try, please follow the steps shown as below:
-
Get your chef files, please follow this if you do not have them yet.
- USERNAME.pem
- ORGANIZATION-validator.pem
- knife.rb
-
$ cd /some/path/where/you/want/to/play/in/
-
$ git clone git@github.com:xfun68/auto_chef_quick_start.git
-
$ cd auto_chef_quick_start
-
$ cp ~/Downloads/CHEF_USERNAME.pem ~/Downloads/CHEF_ORGANIZATION-validator.pem ~/Downloads/knife.rb config/
-
$ ./go.sh
-
Go for a cup of tea or coffee, remember to get back after 10 minutes. :)
-
Check it:
$ ssh vagrant@33.33.33.10 'ps aux | grep chef-client | grep -v grep' root 4128 0.0 5.1 30916 19420 ? S 21:48 0:00 /usr/bin/ruby1.8 /usr/bin/chef-client -d -P /var/run/chef/client.pid -L /var/log/chef/client.log -c /etc/chef/client.rb -i 1800 -s 20
FYI, you must have these tools installed correctly on your system, they are:
- build-essential(for Ubuntu) or xcode(for Mac OS X)
- RVM
- git-core
- ree or other versions of ruby(1.8.7+)
- gem(1.3.7+)
- VirtualBox(4.1.0+)