Skip to content

Instantly share code, notes, and snippets.

@stevelle
Last active March 10, 2017 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevelle/6f7c11dcd576eebbf75d3515513ed8de to your computer and use it in GitHub Desktop.
Save stevelle/6f7c11dcd576eebbf75d3515513ed8de to your computer and use it in GitHub Desktop.
potential solution for https://review.openstack.org/#/c/444417 ?
neutron_lbaasv2_service_providers:
- "{% if neutron_lbaasv2_service_provider | bool %}LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver{% endif %}"
- "{% if neutron_lbaas_octavia | bool %}LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver{% endif %}"
neutron_lbaasv2_service_provider: "{{ neutron_lbaasv2_service_providers | join(',') }}{% if neutron_lbaasv2_service_providers | length > 0 %}:default{% endif %}"
# If it rejects the empty string lines here, or the join includes empty lines causing extra commas, we might be able
# to work around it as such:
# - add "{% elseif %}None" or something in each providers line (2, 3)
# - use "neutron_lbaasv2_service_providers | reject('none')| join(',')" on line 5
@stevelle
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment