blob: 178ea11fe826a518b41682579df4faf607b680bc [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:
48 - create-vms
Zack Williams9cdf8622016-02-26 22:42:50 -070049 - juju-setup
Zack Williams8625d042016-02-26 14:32:43 -070050
Zack Williams709f11b2016-03-17 14:29:51 -070051- name: Configure compute nodes
52 hosts: compute
Zack Williams8625d042016-02-26 14:32:43 -070053 become: yes
54 roles:
Zack Williams391ddab2016-03-15 09:55:19 -070055 - compute-prep
Zack Williams8625d042016-02-26 14:32:43 -070056
Zack Williams6f5a6e72016-08-10 17:45:27 -070057- name: Deploy compute nodes
Zack Williams709f11b2016-03-17 14:29:51 -070058 hosts: head
Zack Williamsf08aa4f2016-03-02 14:17:10 -070059 roles:
Zack Williams6f5a6e72016-08-10 17:45:27 -070060 - juju-compute-setup
Zack Williamsf08aa4f2016-03-02 14:17:10 -070061