File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 96
96
# @param manage_logdir Set to false if you have file{ $logdir: } already defined
97
97
# @param manage_xlogdir Set to false if you have file{ $xlogdir: } already defined
98
98
# @param password_encryption Specify the type of encryption set for the password.
99
- #
99
+ # @param pg_hba_auth_password_encryption
100
+ # Specify the type of encryption set for the password in pg_hba_conf,
101
+ # this value is usefull if you want to start enforcing scram-sha-256, but give users transition time.
100
102
# @param roles Specifies a hash from which to generate postgresql::server::role resources.
101
103
# @param config_entries Specifies a hash from which to generate postgresql::server::config_entry resources.
102
104
# @param pg_hba_rules Specifies a hash from which to generate postgresql::server::pg_hba_rule resources.
179
181
Boolean $manage_logdir = $postgresql::params::manage_logdir,
180
182
Boolean $manage_xlogdir = $postgresql::params::manage_xlogdir,
181
183
Postgresql::Pg_password_encryption $password_encryption = $postgresql::params::password_encryption,
184
+ Postgresql::Pg_password_encryption $pg_hba_auth_password_encryption = undef ,
182
185
Optional[String] $extra_systemd_config = $postgresql::params::extra_systemd_config,
183
186
184
187
Hash[String, Hash] $roles = {},
Original file line number Diff line number Diff line change 42
42
# @param log_line_prefix PostgreSQL log line prefix
43
43
# @param timezone Set timezone for the PostgreSQL instance
44
44
# @param password_encryption Specify the type of encryption set for the password.
45
+ # @param pg_hba_auth_password_encryption
46
+ # Specify the type of encryption set for the password in pg_hba_conf,
47
+ # this value is usefull if you want to start enforcing scram-sha-256, but give users transition time.
45
48
# @param extra_systemd_config
46
49
# Adds extra config to systemd config file, can for instance be used to add extra openfiles. This can be a multi line string
47
50
define postgresql::server::instance::config (
71
74
Optional[String[1]] $log_line_prefix = $postgresql::server::log_line_prefix,
72
75
Optional[String[1]] $timezone = $postgresql::server::timezone,
73
76
Postgresql::Pg_password_encryption $password_encryption = $postgresql::server::password_encryption,
77
+ Postgresql::Pg_password_encryption $pg_hba_auth_password_encryption = $postgresql::server::pg_hba_auth_password_encryption,
74
78
Optional[String] $extra_systemd_config = $postgresql::server::extra_systemd_config,
75
79
) {
80
+ if $pg_hba_auth_password_encryption {
81
+ $override_pg_hba_auth_password_encryption = $pg_hba_auth_password_encryption
82
+ } else {
83
+ $override_pg_hba_auth_password_encryption = $password_encryption
84
+ }
85
+
76
86
if ($manage_pg_hba_conf == true ) {
77
87
# Prepare the main pg_hba file
78
88
concat { $pg_hba_conf_path:
You can’t perform that action at this time.
0 commit comments