File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
manifests/server/instance Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 47
47
# this value is usefull if you want to start enforcing scram-sha-256, but give users transition time.
48
48
# @param extra_systemd_config
49
49
# Adds extra config to systemd config file, can for instance be used to add extra openfiles. This can be a multi line string
50
+ # @param manage_selinux Specifies whether or not manage the conf file for selinux.
50
51
define postgresql::server::instance::config (
51
52
String[1] $ip_mask_deny_postgres_user = $postgresql::server::ip_mask_deny_postgres_user,
52
53
String[1] $ip_mask_allow_all_users = $postgresql::server::ip_mask_allow_all_users,
76
77
Postgresql::Pg_password_encryption $password_encryption = $postgresql::server::password_encryption,
77
78
Optional[Postgresql::Pg_password_encryption] $pg_hba_auth_password_encryption = $postgresql::server::pg_hba_auth_password_encryption,
78
79
Optional[String] $extra_systemd_config = $postgresql::server::extra_systemd_config,
80
+ Optional[Boolean] $manage_selinux = $postgresql::server::manage_selinux,
79
81
) {
80
82
$_pg_hba_auth_password_encryption = pick($pg_hba_auth_password_encryption ,$password_encryption )
81
83
164
166
}
165
167
166
168
# ensure that SELinux has a proper label for the port defined
167
- if $postgresql::server:: manage_selinux == true and $facts [' os' ][' selinux' ][' enabled' ] == true {
169
+ if $manage_selinux and $facts [' os' ][' selinux' ][' enabled' ] {
168
170
case $facts [' os' ][' family' ] {
169
171
' RedHat' , ' Linux' : {
170
172
if $facts [' os' ][' name' ] == ' Amazon' {
You can’t perform that action at this time.
0 commit comments