correct the placement of service.
[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       series: {{ ubuntu.release }}
36       options:
37         allow-ufw-ip6-softfail: True
38       to:
39         - "designate-bind/0"
40         - "designate-bind/1"
41     ceilometer:
42       charm: "./{{ ubuntu.release }}/ceilometer"
43       num_units: {{ unit_qty() }}
44 {% if os.service.bindings %}
45       bindings:
46         "": *oam-space
47         public: *public-space
48         admin: *admin-space
49         internal: *internal-space
50 {% endif %}
51       options:
52         openstack-origin: *openstack-origin
53         region: *openstack-region
54 {% if os.ha.mode == 'ha' %}
55         vip: *ceilometer-vip
56 {% endif %}
57 {% if os.api.ssl %}
58         ssl_ca: *ssl_ca
59         ssl_cert: *ssl_cert
60         ssl_key: *ssl_key
61         os-public-hostname: *hostname_ceilometer_public
62         os-internal-hostname: *hostname_ceilometer_public
63         os-admin-hostname: *hostname_ceilometer_public
64 {% endif %}
65       to:
66 {% for unit_id in to_select() %}
67         - "lxd:nodes/{{ unit_id }}"
68 {% endfor %}