blob: 84c30c3a017f43b20d8cd1c1290940e141e9a439 [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:
Zack Williams35624562016-08-28 17:12:26 -070010 - 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 Bavier3a1d0642016-07-01 14:11:39 -040016
17- name: DNS Server and apt-cacher-ng Setup
18 hosts: head
19 become: yes
20 roles:
Andy Bavier0481a8a2016-07-14 13:01:45 +020021 - { role: dns-nsd, when: not on_maas }
22 - { role: dns-unbound, when: not on_maas }
Andy Bavier3a1d0642016-07-01 14:11:39 -040023 - apt-cacher-ng
24
25- name: Configure all hosts to use DNS server
26 hosts: all
27 become: yes
28 roles:
Andy Bavier0481a8a2016-07-14 13:01:45 +020029 - { role: dns-configure, when: not on_maas }
Andy Bavier3a1d0642016-07-01 14:11:39 -040030
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 }
Andy Bavier3a197d82016-11-14 08:22:43 -080043 - create-lxd
Andy Bavier3a1d0642016-07-01 14:11:39 -040044 - create-vms
45
Scott Bakerc93cef92016-10-27 14:07:47 -070046- name: Create docker images
47 hosts: head
48 roles:
49 - xos-build
50
Andy Bavierfb80bf72016-11-15 10:56:34 -080051- name: Set up VMs and juju
Andy Bavier3a1d0642016-07-01 14:11:39 -040052 hosts: head
53 roles:
Scott Bakerdb5c8c72016-11-08 08:40:06 -080054 - xos-install
Andy Bavier3a1d0642016-07-01 14:11:39 -040055 - onos-vm-install
56 - juju-setup
Andy Bavierfb80bf72016-11-15 10:56:34 -080057
58- name: Start ONOS and XOS
59 hosts: head
60 roles:
Andy Bavier3a1d0642016-07-01 14:11:39 -040061 - docker-compose
Scott Bakerdb5c8c72016-11-08 08:40:06 -080062 - xos-head-start
Andy Bavier3a1d0642016-07-01 14:11:39 -040063
David K. Bainbridgee05b5562016-07-08 11:07:33 -070064- name: Set up Automated Compute Node Provisioning
65 hosts: head
66 roles:
Andy Bavier0481a8a2016-07-14 13:01:45 +020067 - { role: automation-integration, when: on_maas }
David K. Bainbridgee05b5562016-07-08 11:07:33 -070068
David K. Bainbridge49b75ef2016-08-24 15:24:15 -070069- name: Prologue
70 hosts: head
71 roles:
72 - head-prologue