Skip to content

Instantly share code, notes, and snippets.

@tobyhede
Created June 11, 2013 01:43
Show Gist options
  • Save tobyhede/5753979 to your computer and use it in GitHub Desktop.
Save tobyhede/5753979 to your computer and use it in GitHub Desktop.
vagrant chef reset
#!/bin/zsh
/usr/bin/vagrant destroy --force
yes | knife client delete {NODE_NAME}
yes | knife node delete {NODE_NAME}
/usr/bin/vagrant up
knife bootstrap localhost --node-name {NODE_NAME} --ssh-user vagrant --ssh-password vagrant --ssh-port 2222 --sudo
/usr/bin/vagrant provision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment