Andy Bavier | 12262e7 | 2016-12-02 11:36:57 -0500 | [diff] [blame] | 1 | --- |
| 2 | # Deploys OpenStack in LXD containers on the CORD head node |
| 3 | |
| 4 | - name: Include vars |
Zack Williams | c047c87 | 2017-01-11 08:38:15 -0700 | [diff] [blame] | 5 | hosts: all, localhost |
Andy Bavier | 12262e7 | 2016-12-02 11:36:57 -0500 | [diff] [blame] | 6 | tasks: |
| 7 | - name: Include variables |
| 8 | include_vars: "{{ item }}" |
| 9 | with_items: |
| 10 | - vars/cord_defaults.yml |
| 11 | - vars/cord.yml |
| 12 | - vars/example_keystone.yml |
| 13 | |
| 14 | - name: Configure head node, create containers |
| 15 | hosts: head |
| 16 | roles: |
| 17 | - { role: head-prep, become: yes } |
| 18 | - create-lxd |
| 19 | |
Zack Williams | c047c87 | 2017-01-11 08:38:15 -0700 | [diff] [blame] | 20 | - name: Create SSL root/intermediate CAs and server certificates |
| 21 | connection: local |
| 22 | hosts: localhost |
| 23 | roles: |
| 24 | - pki-root-ca |
| 25 | - pki-intermediate-ca |
| 26 | - pki-cert |
| 27 | |
| 28 | - name: Install CA certificates |
| 29 | hosts: head |
| 30 | roles: |
| 31 | - pki-install |
| 32 | |
Andy Bavier | 12262e7 | 2016-12-02 11:36:57 -0500 | [diff] [blame] | 33 | - name: Start OpenStack install |
| 34 | hosts: head |
| 35 | roles: |
| 36 | - juju-setup |
| 37 | |
| 38 | # Put plays here that will execute in parallel to |
| 39 | # the OpenStack installation |
| 40 | |
| 41 | - name: Finish OpenStack install |
| 42 | hosts: head |
| 43 | roles: |
| 44 | - juju-finish |
Zack Williams | c047c87 | 2017-01-11 08:38:15 -0700 | [diff] [blame] | 45 | |