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: |
| 10 | - include_vars: vars/cord_defaults.yml |
| 11 | - include_vars: vars/cord.yml |
| 12 | - include_vars: vars/example_keystone.yml # for testing |
| 13 | |
| 14 | - name: DNS Server and apt-cacher-ng Setup |
| 15 | hosts: head |
| 16 | become: yes |
| 17 | roles: |
Andy Bavier | b99ba1c | 2016-07-07 16:26:41 -0400 | [diff] [blame] | 18 | - { role: dns-nsd, when: not cord_provisioned } |
| 19 | - { role: dns-unbound, when: not cord_provisioned } |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 20 | - apt-cacher-ng |
| 21 | |
| 22 | - name: Configure all hosts to use DNS server |
| 23 | hosts: all |
| 24 | become: yes |
| 25 | roles: |
Andy Bavier | b99ba1c | 2016-07-07 16:26:41 -0400 | [diff] [blame] | 26 | - { role: dns-configure, when: not cord_provisioned } |
Andy Bavier | 3a1d064 | 2016-07-01 14:11:39 -0400 | [diff] [blame] | 27 | |
| 28 | - name: Prep systems |
| 29 | hosts: all |
| 30 | become: yes |
| 31 | roles: |
| 32 | - common-prep |
| 33 | - { role: cloudlab-prep, when: on_cloudlab } |
| 34 | |
| 35 | - name: Configure head node, create VM's |
| 36 | hosts: head |
| 37 | roles: |
| 38 | - { role: head-prep, become: yes } |
| 39 | - { role: config-virt, become: yes } |
| 40 | - create-vms |
| 41 | |
| 42 | - name: Set up VM's, juju, start ONOS and XOS |
| 43 | hosts: head |
| 44 | roles: |
| 45 | - xos-vm-install |
| 46 | - onos-vm-install |
| 47 | - juju-setup |
| 48 | - docker-compose |
| 49 | - xos-start |
| 50 | |
David K. Bainbridge | e05b556 | 2016-07-08 11:07:33 -0700 | [diff] [blame] | 51 | - name: Set up Automated Compute Node Provisioning |
| 52 | hosts: head |
| 53 | roles: |
| 54 | - { role: automation-integration, when on_maas } |
| 55 | |