modfiied to corner the concerns of Orange labs.
[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 {% if os.service.bindings %}
5       bindings:
6         internal: internal-api
7         admin: internal-api
8         shared-db: internal-api
9 {% if opnfv.spaces_dict.public is defined %}
10         public: public-api
11 {% else %}
12         public: internal-api
13 {% endif %}
14 {% endif %}
15       options:
16         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
17         region: {{ os.region }}
18         console-access-protocol: novnc
19         neutron-external-network: ext-net
20         service-guard: true
21 {% if os.beta.public_api %}
22         use-internal-endpoints: true
23 {% endif %}
24 {% if os.network.ipv6 %}
25         prefer-ipv6: {{ os.network.ipv6 }}
26 {% endif %}
27 {% if os.api.worker_multiplier %}
28         worker-multiplier: {{ os.api.worker_multiplier }}
29 {% endif %}
30 {% if os.ha.mode == 'ha' %}
31         vip: {{ opnfv.vip.nova }}
32 {% endif %}
33 {% if opnfv.domain is defined %}
34         #console-proxy-ip: {{ opnfv.domain }}
35 {% endif %}
36         network-manager: Neutron
37 {% if os.beta.public_api %}
38         os-public-hostname: api.{{ opnfv.domain }}
39 {% endif %}
40       to:
41 {% for unit_id in to_select() %}
42         - "lxd:nodes/{{ unit_id }}"
43 {% endfor %}