modified templates and added variable to easlity understand the
[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         "": *oam-space
7         public: *public-space
8         admin: *admin-space
9         internal: *internal-space
10         shared-db: *internal-space
11 {% endif %}
12       options:
13         openstack-origin: *openstack-origin
14 {% if os.git_repo.origin_git %}
15         openstack-origin-git: "{{ os.git_repo.branch }}"
16 {% endif %}
17         region: *openstack-region
18         console-access-protocol: novnc
19         neutron-external-network: ext-net
20         service-guard: true
21         worker-multiplier: *worker-multiplier
22         single-nova-consoleauth: False
23         network-manager: Neutron
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.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 {% if os.beta.public_api %}
37         os-public-hostname: api.{{ opnfv.domain }}
38 {% endif %}
39       to:
40 {% for unit_id in to_select() %}
41         - "lxd:nodes/{{ unit_id }}"
42 {% endfor %}