File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 25
25
$manage_selinux = pick($manage_selinux , false )
26
26
$package_ensure = ' present'
27
27
$module_workdir = pick($module_workdir ,' /tmp' )
28
- $password_encryption = if versioncmp($version , ' 14' ) >= 0 { ' scram-sha-256' } else { undef }
28
+ $password_encryption = if versioncmp($version , ' 14' ) >= 0 { ' scram-sha-256' } else { ' md5 ' }
29
29
$extra_systemd_config = undef
30
30
$manage_datadir = true
31
31
$manage_logdir = true
Original file line number Diff line number Diff line change 178
178
Boolean $manage_datadir = $postgresql::params::manage_datadir,
179
179
Boolean $manage_logdir = $postgresql::params::manage_logdir,
180
180
Boolean $manage_xlogdir = $postgresql::params::manage_xlogdir,
181
- Optional[ Postgresql::Pg_password_encryption] $password_encryption = $postgresql::params::password_encryption,
181
+ Postgresql::Pg_password_encryption $password_encryption = $postgresql::params::password_encryption,
182
182
Optional[String] $extra_systemd_config = $postgresql::params::extra_systemd_config,
183
183
184
184
Hash[String, Hash] $roles = {},
Original file line number Diff line number Diff line change 70
70
Boolean $service_enable = $postgresql::server::service_enable,
71
71
Optional[String[1]] $log_line_prefix = $postgresql::server::log_line_prefix,
72
72
Optional[String[1]] $timezone = $postgresql::server::timezone,
73
- Optional[ Postgresql::Pg_password_encryption] $password_encryption = $postgresql::server::password_encryption,
73
+ Postgresql::Pg_password_encryption $password_encryption = $postgresql::server::password_encryption,
74
74
Optional[String] $extra_systemd_config = $postgresql::server::extra_systemd_config,
75
75
) {
76
76
if ($manage_pg_hba_conf == true ) {
105
105
type => ' host' ,
106
106
user => $user ,
107
107
address => ' 127.0.0.1/32' ,
108
- auth_method => ' md5 ' ,
108
+ auth_method => $password_encryption ,
109
109
order => 3;
110
110
111
111
" deny access to postgresql user for instance ${name} " :
118
118
" allow access to all users for instance ${name} " :
119
119
type => ' host' ,
120
120
address => $ip_mask_allow_all_users ,
121
- auth_method => ' md5 ' ,
121
+ auth_method => $password_encryption ,
122
122
order => 100;
123
123
124
124
" allow access to ipv6 localhost for instance ${name} " :
125
125
type => ' host' ,
126
126
address => ' ::1/128' ,
127
- auth_method => ' md5 ' ,
127
+ auth_method => $password_encryption ,
128
128
order => 101;
129
129
}
130
130
}
You can’t perform that action at this time.
0 commit comments