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.
Constantine:
As I get no love from Ansible team for some reason, for now it's better to use our Ansible fork at https://github.com/zerovm/ansible.git
It has both parted and parted_facts modules and all the rax fixes
-
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
-
Copy
rackspace-server-list.yaml.example
torackspace-server-list.yaml
and edit it to your needs. The example file creates a big 10-node cluster, beware. -
Now run
./rax-deploy.sh
with thePRV_KEY
filename as argument.