adding bionic support.
[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       series: {{ ubuntu.release }}
12       options:
13         openstack-origin: *openstack-origin
14 {% if os.ha.mode == 'ha' %}
15         vip: *gnocchi-vip
16 {% endif %}
17 {% if os.api.ssl %}
18         ssl_ca: *ssl_ca
19         ssl_cert: *ssl_cert
20         ssl_key: *ssl_key
21         os-public-hostname: *hostname_gnocchi_public
22         os-internal-hostname: *hostname_gnocchi_public
23         os-admin-hostname: *hostname_gnocchi_public
24 {% endif %}
25       to:
26 {% for unit_id in to_select() %}
27         - "lxd:nodes/{{ unit_id }}"
28 {% endfor %}
29     memcached:
30       charm: ./{{ ubuntu.release }}/memcached
31       num_units: 2
32 {% if os.service.bindings %}
33       bindings:
34         "": *internal-space
35 {% endif %}
36       series: {{ ubuntu.release }}
37       options:
38         allow-ufw-ip6-softfail: True
39       to:
40         - "lxd:nodes/0"
41         - "lxd:nodes/1"
42     ceilometer:
43       charm: "./{{ ubuntu.release }}/ceilometer"
44       num_units: {{ unit_qty() }}
45 {% if os.service.bindings %}
46       bindings:
47         "": *oam-space
48         public: *public-space
49         admin: *admin-space
50         internal: *internal-space
51 {% endif %}
52       series: {{ ubuntu.release }}
53       options:
54         openstack-origin: *openstack-origin
55         region: *openstack-region
56 {% if os.ha.mode == 'ha' %}
57         vip: *ceilometer-vip
58 {% endif %}
59 {% if os.api.ssl %}
60         ssl_ca: *ssl_ca
61         ssl_cert: *ssl_cert
62         ssl_key: *ssl_key
63         os-public-hostname: *hostname_ceilometer_public
64         os-internal-hostname: *hostname_ceilometer_public
65         os-admin-hostname: *hostname_ceilometer_public
66 {% endif %}
67       to:
68 {% for unit_id in to_select() %}
69         - "lxd:nodes/{{ unit_id }}"
70 {% endfor %}