blob: b782476d82dc3c2750b20072bc337d51cb963d03 [file] [log] [blame]
Zack Williams8625d042016-02-26 14:32:43 -07001---
Zack Williamsd2cbe512016-06-03 09:33:15 -07002# Install an OpenCloud site, with multi-node Juju configured OpenStack
Zack Williams8625d042016-02-26 14:32:43 -07003
Zack Williams6f5a6e72016-08-10 17:45:27 -07004- name: Include vars
Zack Williams709f11b2016-03-17 14:29:51 -07005 hosts: all
Zack Williams391ddab2016-03-15 09:55:19 -07006 tasks:
Zack Williams6f5a6e72016-08-10 17:45:27 -07007 - name: Include variables
8 include_vars: "{{ item }}"
9 with_items:
10 - vars/opencloud_defaults.yml
11 - vars/aztest.yml
12 - vars/aztest_keystone.yml
Zack Williams391ddab2016-03-15 09:55:19 -070013
Zack Williams6f5a6e72016-08-10 17:45:27 -070014- name: Turn on virtualization
Zack Williams709f11b2016-03-17 14:29:51 -070015 hosts: all
Zack Williams391ddab2016-03-15 09:55:19 -070016 become: yes
Zack Williams391ddab2016-03-15 09:55:19 -070017 - dell-virt
18
Zack Williams6f5a6e72016-08-10 17:45:27 -070019- name: Check prerequisites
20 hosts: all
21 roles:
22 - prereqs-common
23
24- name: DNS Server and apt-cacher-ng Setup
Zack Williams709f11b2016-03-17 14:29:51 -070025 hosts: head
Zack Williams391ddab2016-03-15 09:55:19 -070026 become: yes
27 roles:
28 - dns-nsd
29 - dns-unbound
Zack Williams6f5a6e72016-08-10 17:45:27 -070030 - apt-cacher-ng
Zack Williams391ddab2016-03-15 09:55:19 -070031
Zack Williams6f5a6e72016-08-10 17:45:27 -070032- name: Use the new DNS server, prep systems
Zack Williams709f11b2016-03-17 14:29:51 -070033 hosts: all
Zack Williams391ddab2016-03-15 09:55:19 -070034 become: yes
35 roles:
36 - dns-configure
Zack Williams6f5a6e72016-08-10 17:45:27 -070037 - common-prep
Zack Williams391ddab2016-03-15 09:55:19 -070038
Zack Williams6f5a6e72016-08-10 17:45:27 -070039- name: Configure head node, configure virtualization
Zack Williams709f11b2016-03-17 14:29:51 -070040 hosts: head
Zack Williams8625d042016-02-26 14:32:43 -070041 roles:
Zack Williams9cdf8622016-02-26 22:42:50 -070042 - { role: head-prep, become: yes }
Zack Williams709f11b2016-03-17 14:29:51 -070043 - { role: config-virt, become: yes }
Zack Williams6f5a6e72016-08-10 17:45:27 -070044
45- name: Create VM's, Configure Juju, install XOS
46 hosts: head
47 roles:
Zack Williams682450e2016-11-19 09:04:41 -070048 - create-lxd
Zack Williams6f5a6e72016-08-10 17:45:27 -070049 - create-vms
Zack Williams682450e2016-11-19 09:04:41 -070050 - xos-install
51 - onos-vm-install
Zack Williams9cdf8622016-02-26 22:42:50 -070052 - juju-setup
Zack Williams682450e2016-11-19 09:04:41 -070053 - docker-compose
54 - xos-head-start
Zack Williams8625d042016-02-26 14:32:43 -070055
Zack Williams709f11b2016-03-17 14:29:51 -070056- name: Configure compute nodes
57 hosts: compute
Zack Williams8625d042016-02-26 14:32:43 -070058 become: yes
59 roles:
Zack Williams391ddab2016-03-15 09:55:19 -070060 - compute-prep
Zack Williams8625d042016-02-26 14:32:43 -070061
Zack Williams6f5a6e72016-08-10 17:45:27 -070062- name: Deploy compute nodes
Zack Williams709f11b2016-03-17 14:29:51 -070063 hosts: head
Zack Williamsf08aa4f2016-03-02 14:17:10 -070064 roles:
Zack Williams6f5a6e72016-08-10 17:45:27 -070065 - juju-compute-setup
Zack Williamsf08aa4f2016-03-02 14:17:10 -070066