b3bba40d20299568608c756e13d4c9d35a62aa63
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / rabbitmq.yaml
1     rabbitmq-server:
2       charm: "./{{ ubuntu.release }}/rabbitmq-server"
3       num_units: {{ unit_qty() }}
4 {% if os.service.bindings %}
5       bindings:
6         "": *oam-space
7         amqp: *internal-space
8         cluster: *internal-space
9 {% endif %}
10       options:
11         source: *openstack-origin
12 {% if opnfv.storage_dict.ceph is defined %}
13         ceph-osd-replication-count: {{ unit_ceph_qty() }}
14 {% endif %}
15 {% if os.network.ipv6 %}
16         prefer-ipv6: {{ os.network.ipv6 }}
17 {% endif %}
18 {% if os.ha.mode == 'ha' %}
19         min-cluster-size: {{ unit_qty() }}
20 {% endif %}
21       to:
22 {% for unit_id in to_select() %}
23         - "lxd:nodes/{{ unit_id }}"
24 {% endfor %}