Permalink
Browse files

Reformat for showoff

  • Loading branch information...
Atalanta committed Feb 21, 2012
1 parent c87c02d commit 4af19e44dc79cb0490a7ca934049a8d1046995d5
Showing with 20 additions and 59 deletions.
  1. +20 −59 guides/student-exercises/anatomy-of-a-chef-run.md
@@ -1,77 +1,38 @@
Anatomy of a Chef Run
======================
# Lab Exercise: Anatomy of a Chef Run
## Objectives
Lab objectives
* Configure remote target to run `chef-client`
* Successful `chef-client` run with debug logging
## Acceptance Criteria
Acceptance Criteria
* Client and node objects exist on Chef Server
* Debug log output from `chef-client`
* Answer the questions
## Prepare Remote Target
# Prepare Remote Target
Your instructor will provide an IP address of an Ubuntu
system. Connect to the system with the following credentials:
You will be issued with a remote system. Connect with the credientials provided.
* Username: ubuntu
* Password: opstrain_0150
Install Chef onto the system.
You will need to install Chef on the system. Use the Full Stack
installer.
# Configure Chef Client
* http://opscode.com/chef/install
Create a Chef client configuration which will allow your node to speak to the Chef server, in readiness for being managed using Chef.
You may need to install the `curl` package:
# Run Chef
sudo apt-get install curl
Run `chef-client` on the local system with debug logging, and send the output to a file. Use the output file, along with the command-line tools to answer the following questions.
## Create Configuration
# Questions
Create a configuration file for your remote target system. The default
location per platform:
* Unix/Linux: `/etc/chef/client.rb`
* Windows: `C:\chef\client.rb`
At a minimum, the configuration should include the Chef Server URI
(`chef_server_url`), and the name of the validation API client
(`validation_client_name`). Refer to your Knife configuration file for
values.
## Use Validation Key
Use the validation key for the Chef Server to automatically create the
new API client. It should be copied to the same directory as the
`client.rb` file, and the filename should be `validation.pem`.
## Run Chef Client
Run `chef-client` on the local system with debug logging, and send the
output to a file. Use the output file, along with the command-line
tools to answer the following questions.
## Questions
What is the name of the node and client created on the Chef Server?
What commands can be used to get these values?
What are two ways to change the name of the node and client at
`chef-client` run time?
What are the platform and platform version of the node?
Does the node have a run list?
What is the IP address detected for the node? Is it the correct
default IP address?
Is the API client an admin?
Does the validation key file still exist? Why?
What kind of HTTP request is made to save the node? When does this
occur?
1. What is the name of the node and client created on the Chef Server?
1. What commands can be used to get these values?
1. What are two ways to change the name of the node and client at `chef-client` run time?
1. What are the platform and platform version of the node?
1. Does the node have a run list?
1. What is the IP address detected for the node? Is it the correct default IP address?
1. Is the API client an admin?
1. Does the validation key file still exist? Why?
1. What kind of HTTP request is made to save the node? When does this occur?

0 comments on commit 4af19e4

Please sign in to comment.