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.