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