Skip to content

Instantly share code, notes, and snippets.

@trobrock
Created December 24, 2010 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trobrock/754515 to your computer and use it in GitHub Desktop.
Save trobrock/754515 to your computer and use it in GitHub Desktop.
simple script that helps when working on a chef recipe using rackspace
NODE=$1;
SERVER=$2;
knife cookbook upload -a;
ID=`knife rackspace server list | grep $SERVER | awk '{print $1}'`;
knife rackspace server delete $ID;
knife node delete -y $NODE;
knife client delete -y $NODE;
sleep 5;
# create the server
knife rackspace server create -f 1 -i 49 -N $SERVER $NODE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment