Skip to content

Instantly share code, notes, and snippets.

@jasonmarlin
Last active May 23, 2016 16:42
Show Gist options
  • Save jasonmarlin/dea24ed23db7e4f8556e553dccb4017d to your computer and use it in GitHub Desktop.
Save jasonmarlin/dea24ed23db7e4f8556e553dccb4017d to your computer and use it in GitHub Desktop.
1. Bootstrap the node (this adds the client and node to Chef server and installs Chef client on node)
knife bootstrap <hostname> --sudo --ssh-user administrator --ssh-password "<password>" --node-name <hostname>
2. Run chef-client on the node
ssh administrator@<hostname>
sudo chef-client
3. Run it again, so it gets a reference to its own host in /etc/hosts
sudo chef-client
4. Hopefully that's it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment