{% endif %}
{% if groups[mds_group_name] is defined %}
+{% if mds_group_name in group_names %}
{% for host in groups[mds_group_name] %}
{% if hostvars[host]['ansible_fqdn'] is defined and mds_use_fqdn %}
[mds.{{ hostvars[host]['ansible_fqdn'] }}]
{% endif %}
{% endfor %}
{% endif %}
+{% endif %}
{% if groups[rgw_group_name] is defined %}
+{% if rgw_group_name in group_names %}
{% for host in groups[rgw_group_name] %}
{% if hostvars[host]['ansible_hostname'] is defined %}
[client.rgw.{{ hostvars[host]['ansible_hostname'] }}]
{% endif %}
{% endfor %}
{% endif %}
+{% endif %}
{% if groups[restapi_group_name] is defined %}
+{% if restapi_group_name in group_names %}
[client.restapi]
{% if restapi_interface != "interface" %}
{% include 'client_restapi_interface.j2' %}
keyring = /var/lib/ceph/restapi/ceph-restapi/keyring
log file = /var/log/ceph/ceph-restapi.log
{% endif %}
+{% endif %}