Ad non-oslo db template

This commit is contained in:
Liam Young 2015-12-11 14:21:15 +00:00
parent 909bd71fb5
commit f9290a97c0
1 changed files with 3 additions and 0 deletions

3
templates/parts/database Normal file
View File

@ -0,0 +1,3 @@
{% if shared_db.host -%}
sql_connection = {{ shared_db.type }}://{{ shared_db.username }}:{{ shared_db.password }}@{{ shared_db.host }}/{{ shared_db.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 -%}