blob: 931d6cb688098f6109be0e5b83b96db7bcf25527 [file] [log] [blame]
Zack Williams8625d042016-02-26 14:32:43 -07001---
Zack Williamsa2763112017-01-03 11:38:38 -07002# opencloud-multi-playbook.yml
Zack Williamsd2cbe512016-06-03 09:33:15 -07003# Install an OpenCloud site, with multi-node Juju configured OpenStack
Zack Williams8625d042016-02-26 14:32:43 -07004
Zack Williams6f5a6e72016-08-10 17:45:27 -07005- name: Include vars
Zack Williams709f11b2016-03-17 14:29:51 -07006 hosts: all
Zack Williams391ddab2016-03-15 09:55:19 -07007 tasks:
Zack Williams6f5a6e72016-08-10 17:45:27 -07008 - name: Include variables
9 include_vars: "{{ item }}"
10 with_items:
Zack Williamsa2763112017-01-03 11:38:38 -070011 - "profile_manifests/{{ cord_profile }}.yml"
12 - profile_manifests/local_vars.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
Zack Williamsa2763112017-01-03 11:38:38 -070045- name: Create LXD's, Configure Juju, install XOS
Zack Williams6f5a6e72016-08-10 17:45:27 -070046 hosts: head
47 roles:
Zack Williams682450e2016-11-19 09:04:41 -070048 - create-lxd
Zack Williams682450e2016-11-19 09:04:41 -070049 - onos-vm-install
Zack Williams9cdf8622016-02-26 22:42:50 -070050 - juju-setup
Zack Williamsa2763112017-01-03 11:38:38 -070051 - juju-finish
52 - cord-profile
53 - xos-docker-images
54 - xos-bootstrap
Zack Williams682450e2016-11-19 09:04:41 -070055 - docker-compose
56 - xos-head-start
Zack Williams8625d042016-02-26 14:32:43 -070057
Zack Williams709f11b2016-03-17 14:29:51 -070058- name: Configure compute nodes
59 hosts: compute
Zack Williams8625d042016-02-26 14:32:43 -070060 become: yes
61 roles:
Zack Williams391ddab2016-03-15 09:55:19 -070062 - compute-prep
Zack Williams8625d042016-02-26 14:32:43 -070063
Zack Williams6f5a6e72016-08-10 17:45:27 -070064- name: Deploy compute nodes
Zack Williams709f11b2016-03-17 14:29:51 -070065 hosts: head
Zack Williamsf08aa4f2016-03-02 14:17:10 -070066 roles:
Zack Williams6f5a6e72016-08-10 17:45:27 -070067 - juju-compute-setup
Zack Williamsf08aa4f2016-03-02 14:17:10 -070068