Created
September 23, 2013 07:09
-
-
Save pkit/6667306 to your computer and use it in GitHub Desktop.
Prerequisites to Zwift Chef scripts
This file contains 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
# RUN ONCE | |
# you will need 3 files: | |
# .pyrax-creds - pyrax credentials for your CloudServers account | |
# rsa_key and rsa_key.bub - a key you will use for connecting to servers on your CloudServers account | |
# you will also need the name of the key on CloudServers account, we denote it as KEY_NAME | |
sudo apt-get install python-dev python-pip git | |
sudo pip install rackspace-novaclient python-novaclient pyrax | |
sudo pip install PyYAML Jinja2 paramiko | |
# now check that you have correct versions, nothing will work with old ones!! | |
pip show pyrax | grep Version # shoud have version 1.5.0 or later | |
pip show python-novaclient | grep Version # shoud have version 2.15.0 or later | |
pip show rackspace-novaclient | grep Version # shoud have version 1.3 or later | |
git clone https://github.com/zerovm/ansible | |
git clone https://github.com/zerovm/chef-rax-public | |
source ansible/hacking/env-setup | |
export RAX_REGION=IAD | |
# or any other region you want | |
export RAX_CREDS_FILE=~/.pyrax-creds | |
# or anywhere else you've saved the .pyrax-creds into | |
cd chef-rax-public | |
cp rackspace_vars.yaml.example rackspace_vars.yaml | |
vi rackspace_vars.yaml | |
# set the "credentials:" to the location of .pyrax-creds | |
# set the "key_name:" to KEY_NAME | |
cp rackspace-server-list.yaml.example rackspace-server-list.yaml | |
vi rackspace-server-list.yaml | |
# check out the amount of servers and the flavors, it's configured for rather big cluster right now | |
# change it to your liking | |
# NOW you're ready | |
# RUN EACH TIME, when in new terminal, or add to .bashrc | |
source ~/ansible/hacking/env-setup | |
export RAX_REGION=IAD | |
export RAX_CREDS_FILE=~/.pyrax-creds | |
# TO INSTALL | |
cd chef-rax-public | |
./rax-deploy.sh ~/zerovm_key | |
# TO DELETE ALL | |
cd chef-rax-public | |
./rax-undeploy.sh ~/zerovm_key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment