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