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