diff --git a/keystone/files/newton/keystone.conf.Debian b/keystone/files/newton/keystone.conf.Debian index 692df8b..a3bf97a 100644 --- a/keystone/files/newton/keystone.conf.Debian +++ b/keystone/files/newton/keystone.conf.Debian @@ -704,7 +704,7 @@ key_repository = {{ server.credential.location }} # Deprecated group/name - [DATABASE]/sql_connection # Deprecated group/name - [sql]/connection #connection = -connection={{ server.database.engine }}+pymysql://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }}{%- if server.database.get('ssl',{}).get('enabled',False) %}?ssl_ca={{ server.database.ssl.get('cacert_file', system_cacerts_file) }}{% endif %} +connection={{ server.database.engine }}{%- if server.database.engine == 'mysql' and '+' not in server.database.engine -%}+pymysql{%- endif -%}://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }}{%- if server.database.get('ssl',{}).get('enabled',False) %}?ssl_ca={{ server.database.ssl.get('cacert_file', system_cacerts_file) }}{% endif %} # The SQLAlchemy connection string to use to connect to the slave database. # (string value) diff --git a/keystone/files/ocata/keystone.conf.Debian b/keystone/files/ocata/keystone.conf.Debian index 0823fb1..6f3dbd1 100644 --- a/keystone/files/ocata/keystone.conf.Debian +++ b/keystone/files/ocata/keystone.conf.Debian @@ -776,7 +776,7 @@ key_repository = {{ server.credential.location }} # Deprecated group/name - [DATABASE]/sql_connection # Deprecated group/name - [sql]/connection #connection = -connection={{ server.database.engine }}+pymysql://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }}{%- if server.database.get('ssl',{}).get('enabled',False) %}?ssl_ca={{ server.database.ssl.get('cacert_file', system_cacerts_file) }}{% endif %} +connection={{ server.database.engine }}{%- if server.database.engine == 'mysql' and '+' not in server.database.engine -%}+pymysql{%- endif -%}://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }}{%- if server.database.get('ssl',{}).get('enabled',False) %}?ssl_ca={{ server.database.ssl.get('cacert_file', system_cacerts_file) }}{% endif %} # The SQLAlchemy connection string to use to connect to the slave database. # (string value) diff --git a/keystone/files/ocata/keystone.conf.RedHat b/keystone/files/ocata/keystone.conf.RedHat index b3c159e..745ff25 100644 --- a/keystone/files/ocata/keystone.conf.RedHat +++ b/keystone/files/ocata/keystone.conf.RedHat @@ -751,7 +751,7 @@ driver = sql # Deprecated group/name - [DATABASE]/sql_connection # Deprecated group/name - [sql]/connection #connection = -connection={{ server.database.engine }}+pymysql://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }} +connection={{ server.database.engine }}{%- if server.database.engine == 'mysql' and '+' not in server.database.engine -%}+pymysql{%- endif -%}://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }} # The SQLAlchemy connection string to use to connect to the slave database. # (string value) diff --git a/keystone/files/pike/keystone.conf.Debian b/keystone/files/pike/keystone.conf.Debian index c6938e0..801114b 100644 --- a/keystone/files/pike/keystone.conf.Debian +++ b/keystone/files/pike/keystone.conf.Debian @@ -776,7 +776,7 @@ key_repository = {{ server.credential.location }} # Deprecated group/name - [DATABASE]/sql_connection # Deprecated group/name - [sql]/connection #connection = -connection={{ server.database.engine }}+pymysql://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }}{%- if server.database.get('ssl',{}).get('enabled',False) %}?ssl_ca={{ server.database.ssl.get('cacert_file', system_cacerts_file) }}{% endif %} +connection={{ server.database.engine }}{%- if server.database.engine == 'mysql' and '+' not in server.database.engine -%}+pymysql{%- endif -%}://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }}{%- if server.database.get('ssl',{}).get('enabled',False) %}?ssl_ca={{ server.database.ssl.get('cacert_file', system_cacerts_file) }}{% endif %} # The SQLAlchemy connection string to use to connect to the slave database. # (string value) diff --git a/keystone/files/pike/keystone.conf.RedHat b/keystone/files/pike/keystone.conf.RedHat index 07392f1..8790be6 100644 --- a/keystone/files/pike/keystone.conf.RedHat +++ b/keystone/files/pike/keystone.conf.RedHat @@ -751,7 +751,7 @@ driver = sql # Deprecated group/name - [DATABASE]/sql_connection # Deprecated group/name - [sql]/connection #connection = -connection={{ server.database.engine }}+pymysql://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }} +connection={{ server.database.engine }}{%- if server.database.engine == 'mysql' and '+' not in server.database.engine -%}+pymysql{%- endif -%}://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }} # The SQLAlchemy connection string to use to connect to the slave database. # (string value)