Slide 17
Slide 17 text
cookbooks ! ssh ubuntu@...
Welcome to Ubuntu 12.04 LTS!
ubuntu$ sudo chef-solo -j config.json
[Sun, 24 Jun 2012 21:33:14 -0700] INFO: *** Chef 0.10.2 ***
[Sun, 24 Jun 2012 21:33:15 -0700] INFO: Setting the run_list to ["recipe[apache2]"] from JSON
[Sun, 24 Jun 2012 21:33:15 -0700] INFO: Run List is [recipe[apache2]]
[Sun, 24 Jun 2012 21:33:15 -0700] INFO: Run List expands to [apache2]
[Sun, 24 Jun 2012 21:33:15 -0700] INFO: Starting Chef Run for lucid64
[Sun, 24 Jun 2012 21:33:15 -0700] INFO: Processing execute[apt-get update] action run (apache2::default line 1)
[Sun, 24 Jun 2012 21:33:15 -0700] INFO: execute[apt-get update] sh(apt-get update)
[Sun, 24 Jun 2012 21:35:29 -0700] INFO: execute[apt-get update] ran successfully
[Sun, 24 Jun 2012 21:35:29 -0700] INFO: Processing package[apache2] action install (apache2::default line 3)
[Sun, 24 Jun 2012 21:36:10 -0700] INFO: package[apache2] installed version 2.2.14-5ubuntu8.9
[Sun, 24 Jun 2012 21:36:10 -0700] INFO: Processing service[apache2] action enable (apache2::default line 7)
[Sun, 24 Jun 2012 21:36:10 -0700] INFO: Chef Run complete in 175.23797 seconds
[Sun, 24 Jun 2012 21:36:10 -0700] INFO: Running report handlers
[Sun, 24 Jun 2012 21:36:10 -0700] INFO: Report handlers complete
And you get output that looks like this.
Normal chef output.
Looks like things worked! Alright. We’re
getting somewhere.
So the next step is that you probably
need to be able to configure vhosts on
the instance, so we want to setup Chef
to be able to configure vhosts.