modified templates and added variable to easlity understand the
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / ceilometer.yaml
index 2404810..b34bec2 100644 (file)
@@ -1,14 +1,25 @@
     mongodb:
       charm: ./{{ ubuntu.release }}/mongodb
       num_units: 1
+{% if os.service.bindings %}
+      bindings:
+        "": *internal-space
+{% endif %}
       to:
         - "lxd:nodes/0"
     ceilometer:
       charm: "./{{ ubuntu.release }}/ceilometer"
       num_units: {{ unit_qty() }}
+{% if os.service.bindings %}
+      bindings:
+        "": *oam-space
+        public: *public-space
+        admin: *admin-space
+        internal: *internal-space
+{% endif %}
       options:
-        openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
-        region: {{ os.region }}
+        openstack-origin: *openstack-origin
+        region: *openstack-region
 {% if os.ha.mode == 'ha' %}
         vip: {{ opnfv.vip.ceilometer }}
 {% endif %}