modfiied to have space support in the juju2 configuration.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / nova-cloud-controller.yaml
1     nova-cloud-controller:
2       charm: "./{{ ubuntu.release }}/nova-cloud-controller"
3       num_units: {{ unit_qty() }}
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         #console-access-protocol: novnc
20         neutron-external-network: ext-net
21         service-guard: true
22 {% if os.beta.public_api %}
23         use-internal-endpoints: true
24 {% endif %}
25 {% if os.network.ipv6 %}
26         prefer-ipv6: {{ os.network.ipv6 }}
27 {% endif %}
28 {% if os.api.worker_multiplier %}
29         worker-multiplier: {{ os.api.worker_multiplier }}
30 {% endif %}
31 {% if os.ha.mode == 'ha' %}
32         vip: {{ opnfv.vip.nova }}
33 {% endif %}
34 {% if opnfv.domain is defined %}
35         console-proxy-ip: {{ opnfv.domain }}
36 {% endif %}
37         network-manager: Neutron
38 {% if os.beta.public_api %}
39         os-public-hostname: api.{{ opnfv.domain }}
40 {% endif %}
41       to:
42 {% for unit_id in to_select() %}
43         - "lxd:nodes/{{ unit_id }}"
44 {% endfor %}