a31db8a5b0efc98d4e4badb197b9dec2fd2d03ee
[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.network.ipv6 %}
25         prefer-ipv6: {{ os.network.ipv6 }}
26 {% endif %}
27 {% if os.ha.mode == 'ha' %}
28         vip: *nova-cc-vip
29 {% endif %}
30 {% if os.api.ssl %}
31         ssl_ca: *ssl_ca
32         ssl_cert: *ssl_cert
33         ssl_key: *ssl_key
34         os-public-hostname: *hostname_nova_public
35         os-internal-hostname: *hostname_nova_public
36         os-admin-hostname: *hostname_nova_public
37 {% endif %}
38 {% if opnfv.domain is defined %}
39         #console-proxy-ip: {{ opnfv.domain }}
40 {% endif %}
41       to:
42 {% for unit_id in to_select() %}
43         - "lxd:nodes/{{ unit_id }}"
44 {% endfor %}