Merge "Pass ceph_mons as a list of inventory hosts"

This commit is contained in:
Zuul 2019-03-18 10:13:55 +00:00 committed by Gerrit Code Review
commit 8de08d0b01

View File

@ -32,11 +32,10 @@ fetch_directory: /etc/openstack_deploy/ceph-fetch/
# ceph-common to prepare for us.
rbd_client_directories: false
# The OSA ceph_client role does not support loading IPs from an inventory group,
# so we have to feed it a list of IPs
ceph_mons: "{{ groups[mon_group_name]
| map('extract', hostvars, 'ansible_host')
| list }}"
# Configure the ceph-mons host list for the OSA ceph_client role
# The role will connect to one of these mons (first available) in order to
# download a copy of the cluster's ceph.conf.
ceph_mons: "{{ groups[mon_group_name] }}"
# Provide a variable which can be overidden by a deployer to specify a list of
# dicts describing RadosGW provisioned by means other than OpenStack-Ansible.