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 } |
Andy Bavier | 3a197d8 | 2016-11-14 08:22:43 -0800 | [diff] [blame] | 42 | - create-lxd |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 43 | |
Andy Bavier | 50f9a53 | 2016-11-17 11:05:56 -0800 | [diff] [blame] | 44 | - name: Start OpenStack install |
| 45 | hosts: head |
| 46 | roles: |
| 47 | - juju-setup |
| 48 | |
| 49 | - name: XOS setup |
Scott Baker | c93cef9 | 2016-10-27 14:07:47 -0700 | [diff] [blame] | 50 | hosts: head |
| 51 | roles: |
Scott Baker | 118c687 | 2016-11-19 08:01:35 -0800 | [diff] [blame] | 52 | - { role: xos-build, when: xos_container_rebuild } |
Andy Bavier | 50f9a53 | 2016-11-17 11:05:56 -0800 | [diff] [blame] | 53 | - xos-install |
Scott Baker | c93cef9 | 2016-10-27 14:07:47 -0700 | [diff] [blame] | 54 | |
Andy Bavier | 50f9a53 | 2016-11-17 11:05:56 -0800 | [diff] [blame] | 55 | - name: Finish OpenStack install |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 56 | hosts: head |
| 57 | roles: |
Andy Bavier | 50f9a53 | 2016-11-17 11:05:56 -0800 | [diff] [blame] | 58 | - juju-finish |
| 59 | |
| 60 | - name: Set up VMs |
| 61 | hosts: head |
| 62 | roles: |
Scott Baker | 58e88a8 | 2016-11-18 13:39:09 -0800 | [diff] [blame] | 63 | - onos-cord-install |
| 64 | - onos-fabric-install |
Andy Bavier | fb80bf7 | 2016-11-15 10:56:34 -0800 | [diff] [blame] | 65 | |
| 66 | - name: Start ONOS and XOS |
| 67 | hosts: head |
| 68 | roles: |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 69 | - docker-compose |
Scott Baker | e0a8089 | 2016-11-23 12:07:07 -0800 | [diff] [blame] | 70 | - xos-config |
Scott Baker | db5c8c7 | 2016-11-08 08:40:06 -0800 | [diff] [blame] | 71 | - xos-head-start |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 72 | |
David K. Bainbridge | e05b556 | 2016-07-08 11:07:33 -0700 | [diff] [blame] | 73 | - name: Set up Automated Compute Node Provisioning |
| 74 | hosts: head |
| 75 | roles: |
Andy Bavier | 0481a8a | 2016-07-14 13:01:45 +0200 | [diff] [blame] | 76 | - { role: automation-integration, when: on_maas } |
David K. Bainbridge | e05b556 | 2016-07-08 11:07:33 -0700 | [diff] [blame] | 77 | |
David K. Bainbridge | 49b75ef | 2016-08-24 15:24:15 -0700 | [diff] [blame] | 78 | - name: Prologue |
| 79 | hosts: head |
| 80 | roles: |
| 81 | - head-prologue |