blob: 0f5e49185d50e4f7cfa15ce6b72730468204d0d0 [file] [log] [blame]
Zack Williamsef434f82016-04-07 17:15:39 -07001---
Zack Williamsd2cbe512016-06-03 09:33:15 -07002# 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.
Zack Williamsef434f82016-04-07 17:15:39 -07006
Zack Williams22332942016-05-20 12:40:58 -07007- name: Include vars
Zack Williams89412832016-06-27 21:17:01 -07008 hosts: head
Zack Williamsef434f82016-04-07 17:15:39 -07009 tasks:
Zack Williams35624562016-08-28 17:12:26 -070010 - name: Include variables
11 include_vars: "{{ item }}"
12 with_items:
13 - vars/cord_single_defaults.yml
14 - vars/cord.yml
15 - vars/example_keystone.yml
Zack Williamsef434f82016-04-07 17:15:39 -070016
Zack Williams82c88e92016-08-08 13:54:20 -070017- name: Check Prerequisites
18 hosts: head
19 roles:
20 - prereqs-common
21
Zack Williams00175a92016-05-02 10:35:25 -070022- name: DNS Server and apt-cacher-ng Setup
Zack Williamsb994a9e2016-05-01 22:21:06 -070023 hosts: head
24 become: yes
25 roles:
Zack Williams00175a92016-05-02 10:35:25 -070026 - dns-nsd
27 - dns-unbound
Zack Williamsb994a9e2016-05-01 22:21:06 -070028 - apt-cacher-ng
Zack Williams5f25f362016-05-02 09:18:41 -070029
Zack Williamsa1cd04e2016-05-02 10:41:37 -070030- name: Configure all hosts to use DNS server
Zack Williams89412832016-06-27 21:17:01 -070031 hosts: head
Zack Williamsa1cd04e2016-05-02 10:41:37 -070032 become: yes
33 roles:
34 - dns-configure
35
Zack Williamsef434f82016-04-07 17:15:39 -070036- name: Prep systems
Zack Williams89412832016-06-27 21:17:01 -070037 hosts: head
Zack Williamsef434f82016-04-07 17:15:39 -070038 become: yes
39 roles:
40 - common-prep
Zack Williams32d711d2016-06-02 10:53:30 -070041 - { role: cloudlab-prep, when: on_cloudlab }
Zack Williamsef434f82016-04-07 17:15:39 -070042
Zack Williamsd31bbc92016-05-20 11:43:18 -070043- name: Configure head node, create VM's
Zack Williamsef434f82016-04-07 17:15:39 -070044 hosts: head
45 roles:
Zack Williams5f25f362016-05-02 09:18:41 -070046 - { role: head-prep, become: yes }
Zack Williamsc990bf72016-05-01 07:44:53 -070047 - { role: config-virt, become: yes }
Zack Williams36a22bf2016-05-20 11:54:49 -070048 - create-vms
Zack Williamsef434f82016-04-07 17:15:39 -070049
Zack Williams22332942016-05-20 12:40:58 -070050- name: Set up VM's, juju, simulate fabric
Zack Williams82a6b782016-04-12 14:00:01 -070051 hosts: head
52 roles:
53 - xos-vm-install
54 - onos-vm-install
Zack Williamsd31bbc92016-05-20 11:43:18 -070055 - juju-setup
Zack Williams0e583122016-04-30 16:57:03 -070056 - simulate-fabric
Andy Baviera27effe2016-07-18 19:23:26 -040057 - { role: test-client-install, when: test_client_install }
58 - docker-compose
Andy Bavierc2335122016-06-25 09:59:22 -040059 - onos-load-apps
Andy Bavier3a1d0642016-07-01 14:11:39 -040060 - xos-start