Skip to content

Commit 8bc7bad

Browse files
committed
Fix password_encryption for DBVERSION in server::role
1 parent 55faf08 commit 8bc7bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/server/role.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
$_hash = if $hash {
143143
$hash
144144
} elsif $connect_settings != undef and 'DBVERSION' in $connect_settings {
145-
if (versioncmp($version, '14') >= 0) { 'scram-sha-256' } else { undef }
145+
versioncmp($version, '14') ? { -1 => 'md5', default => 'scram-sha-256' }
146146
} else {
147147
$postgresql::server::password_encryption
148148
}

0 commit comments

Comments
 (0)