Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 1 | --- |
| 2 | # Installs new compute nodes in cord-pod XOS configuration using Juju |
| 3 | |
| 4 | - name: Include vars |
| 5 | hosts: all |
| 6 | tasks: |
| 7 | - include_vars: vars/cord_defaults.yml |
| 8 | - include_vars: vars/cord.yml |
| 9 | - include_vars: vars/example_keystone.yml |
| 10 | |
| 11 | - name: Configure compute hosts to use DNS server |
| 12 | hosts: all |
| 13 | become: yes |
| 14 | roles: |
Andy Bavier | 0481a8a | 2016-07-14 13:01:45 +0200 | [diff] [blame] | 15 | - { role: dns-configure, when: not on_maas } |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 16 | |
| 17 | - name: Prep systems |
| 18 | hosts: compute |
| 19 | become: yes |
| 20 | roles: |
| 21 | - common-prep |
| 22 | - { role: cloudlab-prep, when: on_cloudlab } |
| 23 | |
| 24 | - name: Configure head node (for sshkey) |
| 25 | hosts: head |
| 26 | roles: |
| 27 | - { role: head-prep, become: yes } |
| 28 | |
| 29 | - name: Configure compute nodes |
| 30 | hosts: compute |
| 31 | become: yes |
| 32 | roles: |
| 33 | - compute-prep |
| 34 | |
| 35 | - name: Deploy compute nodes |
| 36 | hosts: head |
| 37 | roles: |
| 38 | - juju-compute-setup |
| 39 | - xos-compute-setup |
| 40 | |