Last active
August 29, 2015 13:57
-
-
Save initcron/9634846 to your computer and use it in GitHub Desktop.
How to redo the node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [email protected] | |
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