README.md 703 Bytes
Newer Older
Johan Ruuskanen's avatar
Johan Ruuskanen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

## 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
```
20
* Run `ansible-playbook -i inventory/hosts setup_instance.yml` in the ansible folder.
Johan Ruuskanen's avatar
Johan Ruuskanen committed
21
22
23
24
25

You can now ssh into your machine using `ssh ubuntu@your-floating-ip`.

## Remove the terraform instance
* Simply run `terraform destroy`