[ivoks,r=] Add support for setting neutron-alchemy-flags

This commit is contained in:
Edward Hope-Morley 2014-07-16 15:50:01 +01:00
parent 1439799d74
commit ff5745fe29
4 changed files with 16 additions and 1 deletions

View File

@ -128,6 +128,11 @@ options:
ssl_key:
type: string
description: SSL key to use with certificate specified as ssl_cert.
neutron-alchemy-flags:
default: None
type: string
Comma separated list of key=value sqlalchemy related config flags to be
set in plugin ini file.
ssl_ca:
type: string
description: |

View File

@ -1 +1 @@
500
501

View File

@ -16,6 +16,11 @@ reconnect_interval = 2
{% else -%}
connection = sqlite:////var/lib/quantum/quantum.sqlite
{% endif -%}
{% if neutron_alchemy_flags -%}
{% for key, value in neutron_alchemy_flags.iteritems() -%}
{{ key }} = {{ value }}
{% endfor -%}
{% endif -%}
[SECURITYGROUP]
{% if neutron_security_groups -%}

View File

@ -2,3 +2,8 @@
[database]
connection = {{ database_type }}://{{ database_user }}:{{ database_password }}@{{ database_host }}/{{ database }}{% if database_ssl_ca %}?ssl_ca={{ database_ssl_ca }}{% if database_ssl_cert %}&ssl_cert={{ database_ssl_cert }}&ssl_key={{ database_ssl_key }}{% endif %}{% endif %}
{% endif -%}
{% if neutron_alchemy_flags -%}
{% for key, value in neutron_alchemy_flags.iteritems() -%}
{{ key }} = {{ value }}
{% endfor -%}
{% endif -%}