modified to made an option to support spaces as per JUJU 2.0
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / heat.yaml
1     heat:
2       charm: "./{{ ubuntu.release }}/heat"
3       num_units: 1
4 {% if os.service.bindings %}
5       bindings:
6         internal: internal
7 {% if opnfv.spaces_dict.data is defined %}
8         admin: admin
9 {% else %}
10         admin: internal
11 {% endif %}
12 {% if opnfv.spaces_dict.public is defined %}
13         public: public
14 {% else %}
15         public: internal
16 {% endif %}
17 {% endif %}
18       options:
19         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
20         region: {{ os.region }}
21 {% if os.network.ipv6 %}
22         prefer-ipv6: {{ os.network.ipv6 }}
23 {% endif %}
24 {% if os.api.worker_multiplier %}
25         worker-multiplier: {{ os.api.worker_multiplier }}
26 {% endif %}
27 {% if os.ha.mode == 'ha' %}
28 #        vip: {{ opnfv.vip.heat }}
29 {% endif %}
30 {% if os.beta.public_api %}
31 #        os-public-hostname: api.{{ opnfv.domain }}
32 {% endif %}
33       to:
34         - "lxd:nodes/0"
35 {# Empty block to avoid bad block trim #}