New scripts for configs generation, based on jinja2
[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.network.controller == 'nosdn' %}
7         flat-network-providers: "*"
8 {% if os.network.dvr %}
9         overlay-network-type: vxlan
10 {% endif %}
11 {% elif os.network.controller == 'odl' %}
12         manage-neutron-plugin-legacy-mode: False
13 {% elif os.network.controller == 'onos' %}
14         flat-network-providers: "*"
15         manage-neutron-plugin-legacy-mode: False
16 {% endif %}
17 {% if os.ha.mode == 'ha' %}
18         vip: {{ opnfv.vip.neutron }}
19 {% endif %}
20 {% if os.beta.public_api %}
21         os-public-hostname: api.{{ opnfv.domain }}
22 {% endif %}
23       to:
24 {% for unit_id in to_select() %}
25         - "lxc:nodes={{ unit_id }}"
26 {% endfor %}