File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ postgresql_ssl_cert_file: "/etc/ssl/certs/ssl-cert-snakeoil.pem" # (>= 9.2)
148
148
postgresql_ssl_key_file : " /etc/ssl/private/ssl-cert-snakeoil.key" # (>= 9.2)
149
149
postgresql_ssl_ca_file : " " # (>= 9.2)
150
150
postgresql_ssl_crl_file : " " # (>= 9.2)
151
- postgresql_password_encryption : on
151
+ postgresql_password_encryption : " {{ 'md5' if postgresql_version is version_compare('10', '>=') else 'on' }} "
152
152
postgresql_db_user_namespace : off
153
153
postgresql_row_security : on # (>= 9.5)
154
154
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ ssl_cert_file = '{{postgresql_ssl_cert_file}}' # (change requires restart)
87
87
ssl_key_file = '{{postgresql_ssl_key_file}}' # (change requires restart)
88
88
ssl_ca_file = '{{postgresql_ssl_ca_file}}' # (change requires restart)
89
89
ssl_crl_file = '{{postgresql_ssl_crl_file}}' # (change requires restart)
90
- password_encryption = {{'on' if postgresql_password_encryption else 'off' }} # md5 or scram-sha-256
90
+ password_encryption = {{ postgresql_password_encryption }} # md5 or scram-sha-256
91
91
db_user_namespace = {{'on' if postgresql_db_user_namespace else 'off'}}
92
92
row_security = {{'on' if postgresql_row_security else 'off'}}
93
93
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ tcp_keepalives_count = {{ postgresql_tcp_keepalives_count }} # TCP_KEEPCNT;
87
87
# - Authentication -
88
88
89
89
authentication_timeout = {{ postgresql_authentication_timeout }} # 1s-600s
90
- password_encryption = {{ 'on' if postgresql_password_encryption else 'off' }} # md5 or scram-sha-256
90
+ password_encryption = {{ postgresql_password_encryption }} # md5 or scram-sha-256
91
91
db_user_namespace = {{ 'on' if postgresql_db_user_namespace else 'off' }}
92
92
93
93
# GSSAPI using Kerberos
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ tcp_user_timeout = {{ postgresql_tcp_user_timeout }} # TCP_USE
89
89
# - Authentication -
90
90
91
91
authentication_timeout = {{ postgresql_authentication_timeout }} # 1s-600s
92
- password_encryption = {{ 'on' if postgresql_password_encryption else 'off' }} # md5 or scram-sha-256
92
+ password_encryption = {{ postgresql_password_encryption }} # md5 or scram-sha-256
93
93
db_user_namespace = {{ 'on' if postgresql_db_user_namespace else 'off' }}
94
94
95
95
# GSSAPI using Kerberos
You can’t perform that action at this time.
0 commit comments