Chef Part 5

In the previous couple of posts, I mentioned that we have our two nodes connected. I forgot to mention how you go about connecting a node to the Chef server. It’s pretty simple to do. Just go to your directory on your workstation where your Chef DK is located. From there you will use a knife command to setup the node. Below is an example of the command.


knife bootstrap  --sh-user  --sudo --identity-file ~/.ssh/id_rsa --node-name 

That command will ssh to your node, install chef client, and connect the node to the Chef server. It’s makes connecting to the Chef server really easy.

Posted in Senior project

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

Categories
%d bloggers like this: