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