Last active
March 10, 2017 21:27
-
-
Save stevelle/1f7f82b7af787b0bc1097276d2a917a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
neutron_lbaasv2_haproxy_driver: LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver | |
neutron_lbaasv2_octavia_driver: LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver | |
neutron_lbaasv2_service_drivers: "{{[ neutron_lbaasv2_haproxy_driver if neutron_lbaasv2_service_provider | bool, neutron_lbaasv2_octavia_driver if neutron_lbaas_octavia | bool ]}}" | |
neutron_lbaasv2_service_provider: "{{ neutron_lbaasv2_service_drivers | join(',') }}{% if neutron_lbaasv2_service_drivers | length > 0 %}:default{% endif %}" | |
# If it rejects the empty list entries here, or the join includes empty entries causing extra commas, we might be able | |
# to work around it as such: | |
# - use "neutron_lbaasv2_service_drivers | reject('none') | join(',')" on line 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
maybe
neutron_lbaasv2_service_drivers: "{{[] + (neutron_lbaasv2_haproxy_driver if neutron_lbaasv2_service_provider | bool else None) + (neutron_lbaasv2_octavia_driver if neutron_lbaas_octavia | bool else None)
}}"