Prerequisites
- Login to Xerces using for example the cloud.yml or OpenStack RC file.
- ansible (tested with v 3.6.9)
- terraform (tested with v 0.12.8)
Instructions
- Update the values in the cluster.tfvars
- Setup the cluster by running the following. Note the public floating IP assigned
terraform init
terraform apply -var-file=cluster.tfvars
- Add the SSH key to your ssh-agent by running
eval $(ssh-agent -s)
ssh-add /path/to/your/private/key
- Run
ansible-playbook -i inventory/hosts setup_instance.yml
in the ansible folder.
You can now ssh into your machine using ssh ubuntu@your-floating-ip
.
Remove the terraform instance
- Simply run
terraform destroy