c3cec5c433aa09329bb0caa7f3b72f654ab9dbfb
[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         shared-db: internal-api
12         internal: internal-api
13 {% if opnfv.spaces_dict.data is defined %}
14         admin: admin-api
15 {% else %}
16         admin: internal-api
17 {% endif %}
18 {% if opnfv.spaces_dict.public is defined %}
19         public: public-api
20 {% else %}
21         public: internal-api
22 {% endif %}
23 {% endif %}
24       options:
25         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
26         region: {{ os.region }}
27 {% if os.ha.mode == 'ha' %}
28         vip: {{ opnfv.vip.ceilometer }}
29 {% endif %}
30 {% if os.beta.public_api %}
31         os-public-hostname: api.{{ opnfv.domain }}
32 {% endif %}
33       to:
34 {% for unit_id in to_select() %}
35         - "lxd:nodes/{{ unit_id }}"
36 {% endfor %}