blob: 4c40c563f76bf6d14b9067487fe7c120c9d78527 [file] [log] [blame]
Andy Bavier12262e72016-12-02 11:36:57 -05001---
Zack Williamsa2763112017-01-03 11:38:38 -07002# deploy-openstack-playbook.yml
Andy Bavier12262e72016-12-02 11:36:57 -05003# Deploys OpenStack in LXD containers on the CORD head node
4
5- name: Include vars
Zack Williamsc047c872017-01-11 08:38:15 -07006 hosts: all, localhost
Andy Bavier12262e72016-12-02 11:36:57 -05007 tasks:
8 - 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
Andy Bavier12262e72016-12-02 11:36:57 -050013
14- name: Configure head node, create containers
15 hosts: head
16 roles:
17 - { role: head-prep, become: yes }
18 - create-lxd
19
Zack Williamsc047c872017-01-11 08:38:15 -070020- 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 Bavier12262e72016-12-02 11:36:57 -050033- 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 Williamsc047c872017-01-11 08:38:15 -070045