This is a playbook to install swift with the zerocloud middleware and ui enabled.
Pending ansible pull request ansible/ansible#3930
The rax module will need to be patched in the interim to support disk_config.
You'll need a version of ansible with the rax module and the pyrax libraryinstalled.
-
Create/choose ssh key for the new servers, let's denote its location by
PRV_KEY
and its name byKEY_NAME
-
Create/choose PyRax credentials file for your account, it usually looks like this:
[rackspace_cloud] username = my_username api_key = 11111111111111111111111 identity_type = rackspace
-
Copy
rackspace_vars.yaml.example
torackspace_vars.yaml
-
Edit
rackspace_vars.yaml
file and change first variables to the credentials file location (full path only),KEY_NAME
and region name, respectively. Example:credentials: /home/zerovm/.rax-cred key_name: zerovm region: IAD
-
Set up environment variables:
export RAX_REGION=IAD export RAX_CREDS_FILE=/home/zerovm/.rax-cred
-
Now run
./rax-deploy.sh
with thePRV_KEY
filename as argument.