Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 1 | --- |
| 2 | # cord-compute-maas-playbook.yml |
| 3 | # Installs and configures compute nodes when using MaaS |
| 4 | |
| 5 | - name: Include vars |
| 6 | hosts: all |
| 7 | tasks: |
| 8 | - name: Include variables |
| 9 | include_vars: "{{ item }}" |
| 10 | with_items: |
| 11 | - "profile_manifests/{{ cord_profile }}.yml" |
| 12 | - profile_manifests/local_vars.yml |
| 13 | |
| 14 | - name: Configure compute hosts to use DNS server |
| 15 | hosts: all |
| 16 | become: yes |
| 17 | roles: |
| 18 | - { role: dns-configure, when: not on_maas } |
| 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, create configuration |
| 39 | hosts: head |
| 40 | roles: |
| 41 | - juju-compute-setup |
| 42 | - compute-node-config |
| 43 | - compute-node-enable-maas |
| 44 | |