This is a playbook to install swift with the zerocloud middleware and ui enabled.
Pending ansible pull request https://github.com/ansible/ansible/pull/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.
How to setup
Create/choose ssh key for the new servers, let's denote its location by
PRV_KEYand its name by
Create/choose PyRax credentials file for your account, it usually looks like this:
[rackspace_cloud] username = my_username api_key = 11111111111111111111111 identity_type = rackspace
rackspace_vars.yamlfile and change first variables to the credentials file location (full path only),
KEY_NAMEand 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
PRV_KEYfilename as argument.