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)
148148postgresql_ssl_key_file : " /etc/ssl/private/ssl-cert-snakeoil.key" # (>= 9.2)
149149postgresql_ssl_ca_file : " " # (>= 9.2)
150150postgresql_ssl_crl_file : " " # (>= 9.2)
151- postgresql_password_encryption : on
151+ postgresql_password_encryption : " {{ 'md5' if postgresql_version is version_compare('10', '>=') else 'on' }} "
152152postgresql_db_user_namespace : off
153153postgresql_row_security : on # (>= 9.5)
154154
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ ssl_cert_file = '{{postgresql_ssl_cert_file}}' # (change requires restart)
8787ssl_key_file = '{{postgresql_ssl_key_file}}' # (change requires restart)
8888ssl_ca_file = '{{postgresql_ssl_ca_file}}' # (change requires restart)
8989ssl_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
9191db_user_namespace = {{'on' if postgresql_db_user_namespace else 'off'}}
9292row_security = {{'on' if postgresql_row_security else 'off'}}
9393
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ tcp_keepalives_count = {{ postgresql_tcp_keepalives_count }} # TCP_KEEPCNT;
8787# - Authentication -
8888
8989authentication_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
9191db_user_namespace = {{ 'on' if postgresql_db_user_namespace else 'off' }}
9292
9393# 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
8989# - Authentication -
9090
9191authentication_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
9393db_user_namespace = {{ 'on' if postgresql_db_user_namespace else 'off' }}
9494
9595# GSSAPI using Kerberos
You can’t perform that action at this time.
0 commit comments