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