charm-nova-cloud-controller/templates/parts/database
James Page 3bfcfb5a0a [yolanda] Add postgresql support
Rejig templates to use includes, add Postgresql context for neutron and quantum config files.
2014-03-31 12:56:09 +01:00

4 lines
320 B
Plaintext

{% if database_host -%}
sql_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 -%}