added support for install from git repository. please modify
[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 {% if os.git_repo.origin_git %}
18         openstack-origin-git: "{{ os.git_repo.branch }}"
19 {% endif %}
20         region: {{ os.region }}
21         console-access-protocol: novnc
22         neutron-external-network: ext-net
23         service-guard: true
24 {% if os.beta.public_api %}
25         use-internal-endpoints: true
26 {% endif %}
27 {% if os.network.ipv6 %}
28         prefer-ipv6: {{ os.network.ipv6 }}
29 {% endif %}
30 {% if os.api.worker_multiplier %}
31         worker-multiplier: {{ os.api.worker_multiplier }}
32 {% endif %}
33 {% if os.ha.mode == 'ha' %}
34         vip: {{ opnfv.vip.nova }}
35 {% endif %}
36 {% if opnfv.domain is defined %}
37         #console-proxy-ip: {{ opnfv.domain }}
38 {% endif %}
39         network-manager: Neutron
40 {% if os.beta.public_api %}
41         os-public-hostname: api.{{ opnfv.domain }}
42 {% endif %}
43       to:
44 {% for unit_id in to_select() %}
45         - "lxd:nodes/{{ unit_id }}"
46 {% endfor %}