Skip to content

Instantly share code, notes, and snippets.

@initcron
Last active August 29, 2015 13:57
Show Gist options
  • Save initcron/9634846 to your computer and use it in GitHub Desktop.
Save initcron/9634846 to your computer and use it in GitHub Desktop.
How to redo the node
0. Remove client and node from chef server's registry. Run thi from Workstation
{ws}$ knife client delete node1
{ws}$ knife node delete node1
1. Login to node
{node}$ ssh vagrant@192.168.33.11
2. Browse to /etc/chef on node, and delete everything under it
{node}$ rm -rf /etc/chef/*
3. From *workstation*, rerun the bootstrap command
{ws}$ knife bootstrap 192.168.33.11 --sudo -x vagrant -P vagrant -N "node1"
4. Validate
{ws}$ knife client list
{ws}$ knife node list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment