Merge "Fix deployment of gluster with openshift AllInOne"

This commit is contained in:
Zuul 2019-02-07 06:48:09 +00:00 committed by Gerrit Code Review
commit 94203f0447

View File

@ -115,11 +115,8 @@ outputs:
copy:
dest: "{{playbook_dir}}/openshift/inventory/{{tripleo_role_name}}_openshift_glusterfs.yml"
content: |
{% if tripleo_node_group_name == "node-config-infra" -%}
{% if tripleo_node_group_name == "node-config-infra" or tripleo_node_group_name == 'node-config-all-in-one' -%}
glusterfs_registry:
{% else -%}
glusterfs:
{% endif %}
hosts:
{% for host in groups[tripleo_role_name] | default([]) -%}
{{ hostvars.raw_get(host)['ansible_hostname'] }}:
@ -127,3 +124,14 @@ outputs:
glusterfs_devices:
{{openshift_gluster_disks | to_nice_yaml() | indent(8) }}
{% endfor %}
{% endif %}
{% if tripleo_node_group_name != "node-config-infra" or tripleo_node_group_name == 'node-config-all-in-one'-%}
glusterfs:
hosts:
{% for host in groups[tripleo_role_name] | default([]) -%}
{{ hostvars.raw_get(host)['ansible_hostname'] }}:
glusterfs_ip: {{hostvars.raw_get(host)['storage_ip']}}
glusterfs_devices:
{{openshift_gluster_disks | to_nice_yaml() | indent(8) }}
{% endfor %}
{% endif %}