openstack-ansible-os_nova/examples/playbook.yml
Jesse Pretorius 3048970324 Move database creation into role
There is no record for why we implement the database creation outside
of the role in the playbook, when we could do it inside the role.

Implementing it inside the role allows us to reduce the quantity of
group_vars duplicated from the role, and allows us to better document
the required variables in the role. The delegation can still be done
as it is done in the playbook too.

In this patch we implement a new variable called 'nova_db_setup_host'
which is used in the role to allow delegation of the database setup
task to any host, but defaults to the first member of the galera_all
host group. We also document the variable nova_galera_address which
has been used for a long time, but never documented.

Change-Id: I7f977b2c24dcd20a4a7e8d32c13fb6c66127ce9c
2018-06-01 18:57:10 +01:00

14 lines
389 B
YAML

.. code-block:: yaml
- name: Installation and setup of Nova
hosts: nova_all
user: root
roles:
- { role: "os_neutron", tags: [ "os-neutron" ] }
vars:
neutron_galera_address: "{{ internal_lb_vip_address }}"
galera_root_user: root
vars_prompt:
- name: "galera_root_password"
prompt: "What is galera_root_password?"