modfiied to support the new spaces in juju.
[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-api
7         shared-db: internal-api
8 {% if opnfv.spaces_dict.data is defined %}
9         admin: admin-api
10 {% else %}
11         admin: internal-api
12 {% endif %}
13 {% if opnfv.spaces_dict.public is defined %}
14         public: public-api
15 {% else %}
16         public: internal-api
17 {% endif %}
18 {% endif %}
19       options:
20         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
21         region: {{ os.region }}
22 {% if os.network.ipv6 %}
23         prefer-ipv6: {{ os.network.ipv6 }}
24 {% endif %}
25 {% if os.api.worker_multiplier %}
26         worker-multiplier: {{ os.api.worker_multiplier }}
27 {% endif %}
28 {% if os.ha.mode == 'ha' %}
29 #        vip: {{ opnfv.vip.heat }}
30 {% endif %}
31 {% if os.beta.public_api %}
32 #        os-public-hostname: api.{{ opnfv.domain }}
33 {% endif %}
34       to:
35         - "lxd:nodes/0"
36 {# Empty block to avoid bad block trim #}