de6a1214c46b4f9e1a947bee1f80252060ae7ad2
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / ceilometer.yaml
1     mongodb:
2       charm: ./{{ ubuntu.release }}/mongodb
3       num_units: 1
4       constraints: *oam-space-constr
5 {% if os.service.bindings %}
6       bindings:
7         "": *internal-space
8 {% endif %}
9       to:
10         - "lxd:nodes/0"
11     ceilometer:
12       charm: "./{{ ubuntu.release }}/ceilometer"
13       num_units: {{ unit_qty() }}
14 {% if os.service.bindings %}
15       bindings:
16         "": *oam-space
17         public: *public-space
18         admin: *admin-space
19         internal: *internal-space
20 {% endif %}
21       options:
22         openstack-origin: *openstack-origin
23         region: *openstack-region
24 {% if os.ha.mode == 'ha' %}
25         vip: {{ opnfv.vip.ceilometer }}
26 {% endif %}
27 {% if os.beta.public_api %}
28         os-public-hostname: api.{{ opnfv.domain }}
29 {% endif %}
30       to:
31 {% for unit_id in to_select() %}
32         - "lxd:nodes/{{ unit_id }}"
33 {% endfor %}