modified to use the default binding in case no binding for those
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / ceilometer.yaml
1     mongodb:
2       charm: ./{{ ubuntu.release }}/mongodb
3       num_units: 1
4 {% if os.service.bindings %}
5       bindings:
6         "": internal-api
7 {% endif %}
8       to:
9         - "lxd:nodes/0"
10     ceilometer:
11       charm: "./{{ ubuntu.release }}/ceilometer"
12       num_units: {{ unit_qty() }}
13 {% if os.service.bindings %}
14       bindings:
15         shared-db: internal-api
16         internal: internal-api
17 {% if opnfv.spaces_dict.public is defined %}
18         public: public-api
19 {% if opnfv.spaces_dict.data is defined %}
20         admin: admin-api
21 {% else %}
22         admin: internal-api
23 {% endif %}
24 {% else %}
25         admin: internal-api
26         public: internal-api
27 {% endif %}
28 {% endif %}
29       options:
30         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
31         region: {{ os.region }}
32 {% if os.ha.mode == 'ha' %}
33         vip: {{ opnfv.vip.ceilometer }}
34 {% endif %}
35 {% if os.beta.public_api %}
36         os-public-hostname: api.{{ opnfv.domain }}
37 {% endif %}
38       to:
39 {% for unit_id in to_select() %}
40         - "lxd:nodes/{{ unit_id }}"
41 {% endfor %}