Permalink
Browse files

corrected place where apache2 recipe is added

  • Loading branch information...
1 parent 714b51e commit 554a3c6a23a0eb5f5c47b3a48fa4b0a1ad156209 @jtimberman jtimberman committed Feb 23, 2012
Showing with 13 additions and 5 deletions.
  1. +12 −4 guides/student-exercises/more-cookbooks.md
  2. +1 −1 slides/more-cookbooks/01_slide.md
@@ -4,7 +4,7 @@ More Cookbooks
## Objectives
* Apply apt, chef-client, and fail2ban recipes via a base role
-* Add apache2 recipe to webserver role
+* Include the apache2 recipe in the webserver recipe
* Download and examine the haproxy cookbook
## Acceptance Criteria
@@ -32,9 +32,17 @@ In the roles directory, create a `base.rb` for the base role. It
should have a run list containing the `apt`, `fail2ban` and
`chef-client` recipes.
-## Add apache2 to webserver role
+ recipe[apt],
+ recipe[fail2ban],
+ recipe[chef-client]
-Add the `apache2` recipe to the `webserver` role's run list.
+## Add apache2 to webserver cookbook
+
+Use `include_recipe` in the `webserver` cookbook's default recipe to
+add the `apache2` default recipe.
+
+Update the `webserver` cookbook's `metadata.rb` file to depend on the
+`apache2` cookbook.
## Update the roles
@@ -53,7 +61,7 @@ directory. Examine its contents but do not upload it to the Chef
Server yet. Do not apply it to the node's run list, that will be done
in the next exercise.
-## Quesetions
+## Questions
What knife command was used to download the cookbooks from the Chef
Community Site?
@@ -360,5 +360,5 @@ better, by applying them with a role appropriate to the task.
More Cookbooks
* Apply apt, chef-client, and fail2ban recipes via a base role
-* Add apache2 recipe to webserver role
+* Include apache2 recipe in webserver recipe
* Download and examine the haproxy cookbook

0 comments on commit 554a3c6

Please sign in to comment.