Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 1 | --- |
| 2 | # Installs the single node cord-pod XOS configuration, using Juju to provision |
| 3 | # the OpenStack installation inside of VM's on the head node. |
| 4 | # |
| 5 | # This is used by `scripts/single-node-pod.sh` for E2E testing. |
| 6 | |
| 7 | - name: Include vars |
| 8 | hosts: all |
| 9 | tasks: |
Zack Williams | 3562456 | 2016-08-28 17:12:26 -0700 | [diff] [blame] | 10 | - name: Include variables |
| 11 | include_vars: "{{ item }}" |
| 12 | with_items: |
| 13 | - vars/cord_defaults.yml |
| 14 | - vars/cord.yml |
| 15 | - vars/example_keystone.yml |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 16 | |
| 17 | - name: DNS Server and apt-cacher-ng Setup |
| 18 | hosts: head |
| 19 | become: yes |
| 20 | roles: |
Andy Bavier | 0481a8a | 2016-07-14 13:01:45 +0200 | [diff] [blame] | 21 | - { role: dns-nsd, when: not on_maas } |
| 22 | - { role: dns-unbound, when: not on_maas } |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 23 | - apt-cacher-ng |
| 24 | |
| 25 | - name: Configure all hosts to use DNS server |
| 26 | hosts: all |
| 27 | become: yes |
| 28 | roles: |
Andy Bavier | 0481a8a | 2016-07-14 13:01:45 +0200 | [diff] [blame] | 29 | - { role: dns-configure, when: not on_maas } |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 30 | |
| 31 | - name: Prep systems |
| 32 | hosts: all |
| 33 | become: yes |
| 34 | roles: |
| 35 | - common-prep |
| 36 | - { role: cloudlab-prep, when: on_cloudlab } |
| 37 | |
| 38 | - name: Configure head node, create VM's |
| 39 | hosts: head |
| 40 | roles: |
| 41 | - { role: head-prep, become: yes } |
| 42 | - { role: config-virt, become: yes } |
| 43 | - create-vms |
| 44 | |
Scott Baker | c93cef9 | 2016-10-27 14:07:47 -0700 | [diff] [blame] | 45 | - name: Create docker images |
| 46 | hosts: head |
| 47 | roles: |
| 48 | - xos-build |
| 49 | |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 50 | - name: Set up VM's, juju, start ONOS and XOS |
| 51 | hosts: head |
| 52 | roles: |
| 53 | - xos-vm-install |
| 54 | - onos-vm-install |
| 55 | - juju-setup |
| 56 | - docker-compose |
| 57 | - xos-start |
| 58 | |
David K. Bainbridge | e05b556 | 2016-07-08 11:07:33 -0700 | [diff] [blame] | 59 | - name: Set up Automated Compute Node Provisioning |
| 60 | hosts: head |
| 61 | roles: |
Andy Bavier | 0481a8a | 2016-07-14 13:01:45 +0200 | [diff] [blame] | 62 | - { role: automation-integration, when: on_maas } |
David K. Bainbridge | e05b556 | 2016-07-08 11:07:33 -0700 | [diff] [blame] | 63 | |
David K. Bainbridge | 49b75ef | 2016-08-24 15:24:15 -0700 | [diff] [blame] | 64 | - name: Prologue |
| 65 | hosts: head |
| 66 | roles: |
| 67 | - head-prologue |
| 68 | |