blob: 5cf3b8a965e20d718698c6eb7abe1dd0279a885b [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 Williams5223dd92017-02-28 23:38:02 -07006 hosts: all
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
Zack Williams5223dd92017-02-28 23:38:02 -070014- name: Create LXD containers
Andy Bavier12262e72016-12-02 11:36:57 -050015 hosts: head
Zack Williams5223dd92017-02-28 23:38:02 -070016 become: yes
Andy Bavier12262e72016-12-02 11:36:57 -050017 roles:
Andy Bavier12262e72016-12-02 11:36:57 -050018 - create-lxd
19
Zack Williams5223dd92017-02-28 23:38:02 -070020- name: Finish container configuration
21 hosts: head
22 roles:
23 - lxd-finish
24
25- name: Juju OpenStack install
Andy Bavier12262e72016-12-02 11:36:57 -050026 hosts: head
27 roles:
28 - juju-setup
Andy Bavier12262e72016-12-02 11:36:57 -050029 - juju-finish
Zack Williams5223dd92017-02-28 23:38:02 -070030
Saikrishna68619402017-07-18 21:02:40 -040031- name: Configure Nova with DPDK-enabled flavors
32 hosts: head
33 roles:
34 - { role: setup-nova-dpdk, when: enable_dpdk | default(False) }