Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 1 | --- |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 2 | # cord-compute-playbook.yml |
| 3 | # Installs and configures compute nodes |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 4 | |
| 5 | - name: Include vars |
| 6 | hosts: all |
| 7 | tasks: |
Zack Williams | 3562456 | 2016-08-28 17:12:26 -0700 | [diff] [blame] | 8 | - name: Include variables |
| 9 | include_vars: "{{ item }}" |
| 10 | with_items: |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 11 | - "profile_manifests/{{ cord_profile }}.yml" |
| 12 | - profile_manifests/local_vars.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 | |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 38 | - name: Deploy compute nodes, create configuration |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 39 | hosts: head |
| 40 | roles: |
| 41 | - juju-compute-setup |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 42 | - compute-node-config |
| 43 | |
| 44 | - include: add-onboard-containers-playbook.yml |
| 45 | |
| 46 | - name: Enable compute nodes in XOS |
| 47 | hosts: xos_ui |
| 48 | connection: docker |
| 49 | roles: |
| 50 | - compute-node-enable |
| 51 | |