f7ea60a5c6a9f2f8de319f5f84c67510909ffe47
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / neutron-api.yaml
1     neutron-api:
2       charm: "./{{ ubuntu.release }}/neutron-api"
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         neutron-security-groups: True
19         worker-multiplier: *worker-multiplier
20 {% if os.network.ipv6 %}
21         prefer-ipv6: {{ os.network.ipv6 }}
22 {% endif %}
23 {% if os.ha.mode == 'ha' %}
24         vip: *neutron-api-vip
25 {% endif %}
26 {% if os.network.controller == 'nosdn' %}
27         flat-network-providers: physnet1
28 {% if os.network.dvr %}
29         overlay-network-type: vxlan
30         enable-dvr: True
31         l2-population: True
32         enable-l3ha: True
33 {% else %}
34         overlay-network-type: vxlan
35         default-tenant-network-type: vxlan
36 {% endif %}
37 {% elif os.network.controller == 'odl' %}
38         manage-neutron-plugin-legacy-mode: False
39         flat-network-providers: physnet1
40 {% elif os.network.controller == 'onos' %}
41         flat-network-providers: physnet1
42         manage-neutron-plugin-legacy-mode: False
43 {% elif os.network.controller == 'ocl' %}
44         flat-network-providers: physnet1
45         manage-neutron-plugin-legacy-mode: False
46 {% endif %}
47 {% if os.network.l2_population %}
48         l2-population: true
49 {% endif %}
50 {% if os.api.ssl %}
51         ssl_ca: *ssl_ca
52         ssl_cert: *ssl_cert
53         ssl_key: *ssl_key
54         os-public-hostname: *hostname_neutron_public
55         os-internal-hostname: *hostname_neutron_public
56         os-admin-hostname: *hostname_neutron_public
57 {% endif %}
58       to:
59 {% for unit_id in to_select() %}
60         - "lxd:nodes/{{ unit_id }}"
61 {% endfor %}