blob: 7b9fac6530e4ee4df489672f1e636c793a461945 [file] [log] [blame]
Andy Bavier3a1d0642016-07-01 14:11:39 -04001---
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 Bavier0481a8a2016-07-14 13:01:45 +020018 - { role: dns-nsd, when: not on_maas }
19 - { role: dns-unbound, when: not on_maas }
Andy Bavier3a1d0642016-07-01 14:11:39 -040020 - apt-cacher-ng
21
22- name: Configure all hosts to use DNS server
23 hosts: all
24 become: yes
25 roles:
Andy Bavier0481a8a2016-07-14 13:01:45 +020026 - { role: dns-configure, when: not on_maas }
Andy Bavier3a1d0642016-07-01 14:11:39 -040027
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. Bainbridgee05b5562016-07-08 11:07:33 -070051- name: Set up Automated Compute Node Provisioning
52 hosts: head
53 roles:
Andy Bavier0481a8a2016-07-14 13:01:45 +020054 - { role: automation-integration, when: on_maas }
David K. Bainbridgee05b5562016-07-08 11:07:33 -070055