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 182
182
Boolean $manage_datadir = $postgresql::params::manage_datadir,
183
183
Boolean $manage_logdir = $postgresql::params::manage_logdir,
184
184
Boolean $manage_xlogdir = $postgresql::params::manage_xlogdir,
185
- Optional[ Postgresql::Pg_password_encryption] $password_encryption = $postgresql::params::password_encryption,
185
+ Postgresql::Pg_password_encryption $password_encryption = $postgresql::params::password_encryption,
186
186
Optional[String] $extra_systemd_config = $postgresql::params::extra_systemd_config,
187
187
188
188
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 $port =~ String {
116
116
type => ' host' ,
117
117
user => $user ,
118
118
address => ' 127.0.0.1/32' ,
119
- auth_method => ' md5 ' ,
119
+ auth_method => $password_encryption ,
120
120
order => 3;
121
121
122
122
" deny access to postgresql user for instance ${name} " :
129
129
" allow access to all users for instance ${name} " :
130
130
type => ' host' ,
131
131
address => $ip_mask_allow_all_users ,
132
- auth_method => ' md5 ' ,
132
+ auth_method => $password_encryption ,
133
133
order => 100;
134
134
135
135
" allow access to ipv6 localhost for instance ${name} " :
136
136
type => ' host' ,
137
137
address => ' ::1/128' ,
138
- auth_method => ' md5 ' ,
138
+ auth_method => $password_encryption ,
139
139
order => 101;
140
140
}
141
141
}
You can’t perform that action at this time.
0 commit comments