Merge "Set ceph_mons in group_vars"

This commit is contained in:
Jenkins 2017-09-27 05:54:31 +00:00 committed by Gerrit Code Review
commit cf2b5da9d5
2 changed files with 6 additions and 3 deletions

View File

@ -30,3 +30,9 @@ fetch_directory: /etc/openstack_deploy/ceph-fetch/
# exists. we handle the log dir creation so this is not something we need
# 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 }}"

View File

@ -54,9 +54,6 @@
content: |
---
devices: {{ ceph_create_loopback.results | map(attribute='stdout') | list | to_yaml | trim }}
# 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: "{% raw %}[ {% for host in groups[mon_group_name] %}'{{ hostvars[host]['ansible_host'] }}'{% if not loop.last %},{% endif %}{% endfor %} ]{% endraw %}"
cinder_backends:
"RBD":
volume_driver: cinder.volume.drivers.rbd.RBDDriver