added ssl support based on default.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / ceilometer.yaml
1     gnocchi:
2       charm: ./{{ ubuntu.release }}/gnocchi
3       num_units: {{ unit_qty() }}
4 {% if os.service.bindings %}
5       bindings:
6         "": *oam-space
7         public: *public-space
8         admin: *admin-space
9         internal: *internal-space
10 {% endif %}
11       options:
12         openstack-origin: *openstack-origin
13 {% if os.ha.mode == 'ha' %}
14         vip: *gnocchi-vip
15 {% endif %}
16 {% if os.api.ssl %}
17         ssl_ca: *ssl_ca
18         ssl_cert: *ssl_cert
19         ssl_key: *ssl_key
20         os-public-hostname: *hostname_gnocchi_public
21         os-internal-hostname: *hostname_gnocchi_public
22         os-admin-hostname: *hostname_gnocchi_public
23 {% endif %}
24       to:
25 {% for unit_id in to_select() %}
26         - "lxd:nodes/{{ unit_id }}"
27 {% endfor %}
28     memcached:
29       charm: ./{{ ubuntu.release }}/memcached
30       num_units: 2
31 {% if os.service.bindings %}
32       bindings:
33         "": *internal-space
34 {% endif %}
35       options:
36         allow-ufw-ip6-softfail: True
37       to:
38         - "designate-bind/0"
39         - "designate-bind/1"
40     ceilometer:
41       charm: "./{{ ubuntu.release }}/ceilometer"
42       num_units: {{ unit_qty() }}
43 {% if os.service.bindings %}
44       bindings:
45         "": *oam-space
46         public: *public-space
47         admin: *admin-space
48         internal: *internal-space
49 {% endif %}
50       options:
51         openstack-origin: *openstack-origin
52         region: *openstack-region
53 {% if os.ha.mode == 'ha' %}
54         vip: *ceilometer-vip
55 {% endif %}
56 {% if os.api.ssl %}
57         ssl_ca: *ssl_ca
58         ssl_cert: *ssl_cert
59         ssl_key: *ssl_key
60         os-public-hostname: *hostname_ceilometer_public
61         os-internal-hostname: *hostname_ceilometer_public
62         os-admin-hostname: *hostname_ceilometer_public
63 {% endif %}
64       to:
65 {% for unit_id in to_select() %}
66         - "lxd:nodes/{{ unit_id }}"
67 {% endfor %}