TripleO Ansible project repository. Contains playbooks for use with TripleO OpenStack deployments.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
1.2 KiB

# {{ ansible_managed }}
{# MACRO AREA #}
{% macro render_map(root) -%}
{% for key, value in root.items() %}
{{ key}} = {{ value }}
{% endfor %}
{% endmacro %}
[global]
{% if tripleo_ceph_client_cluster_network is defined and tripleo_ceph_client_cluster_network | length > 0 %}
cluster network = {{ tripleo_ceph_client_cluster_network | regex_replace(' ', '') }}
{% endif %}
fsid = {{ tripleo_ceph_client_fsid }}
mon host = {% if tripleo_ceph_client_mon_ips is defined and tripleo_ceph_client_mon_ips | length > 0 %}
{% for ip in tripleo_ceph_client_mon_ips %}{{ip}}{% if not loop.last %},{% endif %}{% endfor %}
{% else %}
{{ external_cluster_mon_ips }}
{% endif %}
{# Build the remaining sections #}
{% for key, value in (config_overrides | default({})).items() %}
{% if (['client']) | intersect([key]) %}
[{{ key }}]
{# Render the current section #}
{{ render_map(value) }}
{% endif %}
{% endfor %}
[client.libvirt]
admin socket = {{ tripleo_ceph_client_rbd_admin_socket_path }}/$cluster-$type.$id.$pid.$cctid.asok
log file = {{ tripleo_ceph_client_rbd_log_file }}
{% if tripleo_cephadm_ceph_nfs_ceph_user is defined %}
[client.{{ tripleo_cephadm_ceph_nfs_ceph_user }}]
client mount uid = 0
client mount gid = 0
{% endif %}