charm-cinder/templates/parts/section-database
James Page bfbf3eaa09 [yolanda] Add support for postgresql
Refactor templates to use includes.
2014-03-31 12:11:01 +01:00

5 lines
327 B
Plaintext

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