Zack Williams | 8625d04 | 2016-02-26 14:32:43 -0700 | [diff] [blame] | 1 | --- |
Zack Williams | d2cbe51 | 2016-06-03 09:33:15 -0700 | [diff] [blame] | 2 | # Install an OpenCloud site, with multi-node Juju configured OpenStack |
Zack Williams | 8625d04 | 2016-02-26 14:32:43 -0700 | [diff] [blame] | 3 | |
Zack Williams | 6f5a6e7 | 2016-08-10 17:45:27 -0700 | [diff] [blame] | 4 | - name: Include vars |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 5 | hosts: all |
Zack Williams | 391ddab | 2016-03-15 09:55:19 -0700 | [diff] [blame] | 6 | tasks: |
Zack Williams | 6f5a6e7 | 2016-08-10 17:45:27 -0700 | [diff] [blame] | 7 | - 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 Williams | 391ddab | 2016-03-15 09:55:19 -0700 | [diff] [blame] | 13 | |
Zack Williams | 6f5a6e7 | 2016-08-10 17:45:27 -0700 | [diff] [blame] | 14 | - name: Turn on virtualization |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 15 | hosts: all |
Zack Williams | 391ddab | 2016-03-15 09:55:19 -0700 | [diff] [blame] | 16 | become: yes |
Zack Williams | 391ddab | 2016-03-15 09:55:19 -0700 | [diff] [blame] | 17 | - dell-virt |
18 | |||||
Zack Williams | 6f5a6e7 | 2016-08-10 17:45:27 -0700 | [diff] [blame] | 19 | - name: Check prerequisites |
20 | hosts: all | ||||
21 | roles: | ||||
22 | - prereqs-common | ||||
23 | |||||
24 | - name: DNS Server and apt-cacher-ng Setup | ||||
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 25 | hosts: head |
Zack Williams | 391ddab | 2016-03-15 09:55:19 -0700 | [diff] [blame] | 26 | become: yes |
27 | roles: | ||||
28 | - dns-nsd | ||||
29 | - dns-unbound | ||||
Zack Williams | 6f5a6e7 | 2016-08-10 17:45:27 -0700 | [diff] [blame] | 30 | - apt-cacher-ng |
Zack Williams | 391ddab | 2016-03-15 09:55:19 -0700 | [diff] [blame] | 31 | |
Zack Williams | 6f5a6e7 | 2016-08-10 17:45:27 -0700 | [diff] [blame] | 32 | - name: Use the new DNS server, prep systems |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 33 | hosts: all |
Zack Williams | 391ddab | 2016-03-15 09:55:19 -0700 | [diff] [blame] | 34 | become: yes |
35 | roles: | ||||
36 | - dns-configure | ||||
Zack Williams | 6f5a6e7 | 2016-08-10 17:45:27 -0700 | [diff] [blame] | 37 | - common-prep |
Zack Williams | 391ddab | 2016-03-15 09:55:19 -0700 | [diff] [blame] | 38 | |
Zack Williams | 6f5a6e7 | 2016-08-10 17:45:27 -0700 | [diff] [blame] | 39 | - name: Configure head node, configure virtualization |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 40 | hosts: head |
Zack Williams | 8625d04 | 2016-02-26 14:32:43 -0700 | [diff] [blame] | 41 | roles: |
Zack Williams | 9cdf862 | 2016-02-26 22:42:50 -0700 | [diff] [blame] | 42 | - { role: head-prep, become: yes } |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 43 | - { role: config-virt, become: yes } |
Zack Williams | 6f5a6e7 | 2016-08-10 17:45:27 -0700 | [diff] [blame] | 44 | |
45 | - name: Create VM's, Configure Juju, install XOS | ||||
46 | hosts: head | ||||
47 | roles: | ||||
48 | - create-vms | ||||
Zack Williams | 9cdf862 | 2016-02-26 22:42:50 -0700 | [diff] [blame] | 49 | - juju-setup |
Zack Williams | 8625d04 | 2016-02-26 14:32:43 -0700 | [diff] [blame] | 50 | |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 51 | - name: Configure compute nodes |
52 | hosts: compute | ||||
Zack Williams | 8625d04 | 2016-02-26 14:32:43 -0700 | [diff] [blame] | 53 | become: yes |
54 | roles: | ||||
Zack Williams | 391ddab | 2016-03-15 09:55:19 -0700 | [diff] [blame] | 55 | - compute-prep |
Zack Williams | 8625d04 | 2016-02-26 14:32:43 -0700 | [diff] [blame] | 56 | |
Zack Williams | 6f5a6e7 | 2016-08-10 17:45:27 -0700 | [diff] [blame] | 57 | - name: Deploy compute nodes |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 58 | hosts: head |
Zack Williams | f08aa4f | 2016-03-02 14:17:10 -0700 | [diff] [blame] | 59 | roles: |
Zack Williams | 6f5a6e7 | 2016-08-10 17:45:27 -0700 | [diff] [blame] | 60 | - juju-compute-setup |
Zack Williams | f08aa4f | 2016-03-02 14:17:10 -0700 | [diff] [blame] | 61 |