blob: 0f7b9308b16c9d8dc57d65eedcba40cd3dd7c5e2 [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 Bavierb99ba1c2016-07-07 16:26:41 -040018 - { role: dns-nsd, when: not cord_provisioned }
19 - { role: dns-unbound, when: not cord_provisioned }
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 Bavierb99ba1c2016-07-07 16:26:41 -040026 - { role: dns-configure, when: not cord_provisioned }
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:
54 - { role: automation-integration, when on_maas }
55