qtuning the HA mode of cluster to respond for apis.
[joid.git] / ci / config_tpl / bundle_tpl / neutron-api.yaml
1     neutron-api:
2       charm: "local:{{ ubuntu.release }}/neutron-api"
3       num_units: {{ unit_qty() }}
4       options:
5         neutron-security-groups: true
6 {% if os.ha.mode == 'ha' %}
7         vip: {{ opnfv.vip.neutron }}
8         haproxy-server-timeout: 10000
9         haproxy-client-timeout: 10000
10         haproxy-queue-timeout: 10000
11         haproxy-connect-timeout: 10000
12 {% endif %}
13 {% if os.network.controller == 'nosdn' %}
14         flat-network-providers: "*"
15 {% if os.network.dvr %}
16         overlay-network-type: vxlan
17 {% endif %}
18 {% elif os.network.controller == 'odl' %}
19         manage-neutron-plugin-legacy-mode: False
20 {% elif os.network.controller == 'onos' %}
21         flat-network-providers: "*"
22         manage-neutron-plugin-legacy-mode: False
23 {% endif %}
24 {% if os.beta.public_api %}
25         os-public-hostname: api.{{ opnfv.domain }}
26 {% endif %}
27       to:
28 {% for unit_id in to_select() %}
29         - "lxc:nodes={{ unit_id }}"
30 {% endfor %}