Automaticlly replay the process of Quick Start on Chef wiki.
Shell Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
scripts
README.md
go.sh

README.md

Auto Chef Quick Start

Automaticlly replay the process of Quick Start on Chef wiki.

How do I play with it?

If you really want to give it a try, please follow the steps shown as below:

  1. Get your chef files, please follow this if you do not have them yet.

    • USERNAME.pem
    • ORGANIZATION-validator.pem
    • knife.rb
  2. $ cd /some/path/where/you/want/to/play/in/

  3. $ git clone git@github.com:xfun68/auto_chef_quick_start.git

  4. $ cd auto_chef_quick_start

  5. $ cp ~/Downloads/CHEF_USERNAME.pem ~/Downloads/CHEF_ORGANIZATION-validator.pem ~/Downloads/knife.rb config/

  6. $ ./go.sh

  7. Go for a cup of tea or coffee, remember to get back after 10 minutes. :)

  8. 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+)