ansible-role-qdrouterd/templates/qdrouterd.conf.j2
Jean-Philippe Evrard 1269d327cd Introduce base Zuul jobs
Now that the zuul base jobs from infra have been merged, we
can test the role as an independant entity.

The first step is to get it pass lint tests, so all the
other jobs as marked as non-voting.

Change-Id: I00d6c066fea8ec70ae032010199d00f089005065
Co-Authored-By: Andrew Smith <ansmith@redhat.com>
2018-06-25 13:27:33 +00:00

98 lines
2.2 KiB
Django/Jinja

router {
mode: {{ qdrouterd_mode }}
id: {{ ansible_hostname }}
workerThreads: {{ qdrouterd_worker_threads }}
saslConfigPath: {{ qdrouterd_sasl_conf_path }}
saslConfigName: {{ qdrouterd_service_name }}
}
{% if qdrouterd_require_ssl == 'yes' %}
sslProfile {
name: {{ ansible_hostname }}
{% if qdrouterd_ssl_ca_cert is defined %}
certDb: {{ qdrouterd_ssl_ca_cert }}
{% endif %}
certFile: {{ qdrouterd_ssl_cert }}
keyFile: {{ qdrouterd_ssl_key }}
}
{% endif %}
listener {
host: {{ qdrouterd_listener_addr }}
port: {{ qdrouterd_listener_port }}
role: normal
{% if qdrouterd_require_ssl == 'yes' %}
sslProfile: {{ ansible_hostname }}
{% endif %}
authenticatePeer: {{ qdrouterd_listener_auth_peer }}
saslMechanisms: {{ qdrouterd_listener_sasl_mech }}
}
{% if qdrouterd_host_count > '1' %}
listener {
host: {{ qdrouterd_irl_addr }}
port: {{ qdrouterd_irl_port }}
role: inter-router
{% if qdrouterd_require_ssl == 'yes' %}
sslProfile: {{ ansible_hostname }}
{% endif %}
authenticatePeer: {{ qdrouterd_irl_auth_peer }}
saslMechanisms: {{ qdrouterd_irl_sasl_mech }}
}
{% endif %}
{% for router in groups['qdrouterd_all'] %}
{% if inventory_hostname < router %}
connector {
host: {{ hostvars[router]['ansible_eth0']['ipv4']['address'] }}
role: inter-router
port: {{ qdrouterd_irl_port }}
}
{% endif %}
{% endfor %}
address {
prefix: unicast
distribution: closest
}
address {
prefix: exclusive
distribution: closest
}
address {
prefix: broadcast
distribution: multicast
}
address {
prefix: openstack.org/om/rpc/multicast
distribution: multicast
}
address {
prefix: openstack.org/om/rpc/unicast
distribution: closest
}
address {
prefix: openstack.org/om/rpc/anycast
distribution: balanced
}
address {
prefix: openstack.org/om/notify/multicast
distribution: multicast
}
address {
prefix: openstack.org/om/notify/unicast
distribution: closest
}
address {
prefix: openstack.org/om/notify/anycast
distribution: balanced
}
log {
module: {{ qdrouterd_log_module }}
enable: {{ qdrouterd_log_enable }}
timestamp: true
output: {{ qdrouterd_log_file }}
}