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