blob: 92807f27f2ac385f02bc7f05057d78c28a089323 [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:
Andy Bavier3a1d0642016-07-01 14:11:39 -040010 - include_vars: vars/cord_single_defaults.yml
Zack Williamsef434f82016-04-07 17:15:39 -070011 - include_vars: vars/cord.yml
Andy Bavier1b8a5372016-07-07 19:36:21 -040012 - include_vars: vars/example_keystone.yml
Zack Williamsef434f82016-04-07 17:15:39 -070013
Zack Williams82c88e92016-08-08 13:54:20 -070014- name: Check Prerequisites
15 hosts: head
16 roles:
17 - prereqs-common
18
Zack Williams00175a92016-05-02 10:35:25 -070019- name: DNS Server and apt-cacher-ng Setup
Zack Williamsb994a9e2016-05-01 22:21:06 -070020 hosts: head
21 become: yes
22 roles:
Zack Williams00175a92016-05-02 10:35:25 -070023 - dns-nsd
24 - dns-unbound
Zack Williamsb994a9e2016-05-01 22:21:06 -070025 - apt-cacher-ng
Zack Williams5f25f362016-05-02 09:18:41 -070026
Zack Williamsa1cd04e2016-05-02 10:41:37 -070027- name: Configure all hosts to use DNS server
Zack Williams89412832016-06-27 21:17:01 -070028 hosts: head
Zack Williamsa1cd04e2016-05-02 10:41:37 -070029 become: yes
30 roles:
31 - dns-configure
32
Zack Williamsef434f82016-04-07 17:15:39 -070033- name: Prep systems
Zack Williams89412832016-06-27 21:17:01 -070034 hosts: head
Zack Williamsef434f82016-04-07 17:15:39 -070035 become: yes
36 roles:
37 - common-prep
Zack Williams32d711d2016-06-02 10:53:30 -070038 - { role: cloudlab-prep, when: on_cloudlab }
Zack Williamsef434f82016-04-07 17:15:39 -070039
Zack Williamsd31bbc92016-05-20 11:43:18 -070040- name: Configure head node, create VM's
Zack Williamsef434f82016-04-07 17:15:39 -070041 hosts: head
42 roles:
Zack Williams5f25f362016-05-02 09:18:41 -070043 - { role: head-prep, become: yes }
Zack Williamsc990bf72016-05-01 07:44:53 -070044 - { role: config-virt, become: yes }
Zack Williams36a22bf2016-05-20 11:54:49 -070045 - create-vms
Zack Williamsef434f82016-04-07 17:15:39 -070046
Zack Williams22332942016-05-20 12:40:58 -070047- name: Set up VM's, juju, simulate fabric
Zack Williams82a6b782016-04-12 14:00:01 -070048 hosts: head
49 roles:
50 - xos-vm-install
51 - onos-vm-install
Zack Williamsd31bbc92016-05-20 11:43:18 -070052 - juju-setup
Zack Williams0e583122016-04-30 16:57:03 -070053 - simulate-fabric
Andy Baviera27effe2016-07-18 19:23:26 -040054 - { role: test-client-install, when: test_client_install }
55 - docker-compose
Andy Bavierc2335122016-06-25 09:59:22 -040056 - onos-load-apps
Andy Bavier3a1d0642016-07-01 14:11:39 -040057 - xos-start