File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 85
85
$postgresql_conf_mode = pick($postgresql_conf_mode , ' 0600' )
86
86
}
87
87
88
- if pick($service_provider , $facts [' service_provider' ]) == ' systemd' {
89
- $service_reload = " systemctl reload ${service_name} "
90
- $service_status = pick($service_status , " systemctl status ${service_name} " )
91
- } else {
92
- $service_reload = " service ${service_name} reload"
93
- $service_status = pick($service_status , " service ${service_name} status" )
94
- }
88
+ $service_reload = " systemctl reload ${service_name} "
89
+ $service_status = pick($service_status , " systemctl status ${service_name} " )
95
90
96
91
$psql_path = pick($psql_path , " ${bindir} /psql" )
97
92
Original file line number Diff line number Diff line change 242
242
notify => Class[' postgresql::server::reload' ],
243
243
}
244
244
}
245
- # lint:ignore:140chars
246
- # RHEL 7 and 8 both support drop-in files for systemd units. Gentoo also supports drop-in files.
247
- # Edit 02/2023 RHEL basedc Systems and Gentoo need Variables set for $PGPORT, $DATA_DIR or $PGDATA, thats what the drop-in file is for.
248
- # lint:endignore:140chars
249
- if $facts [' os' ][' family' ] in [' RedHat' , ' Gentoo' ] and $facts [' service_provider' ] == ' systemd' {
245
+ # RHEL based systems and Gentoo need variables set for $PGPORT, $DATA_DIR or $PGDATA via a drop-in file
246
+ if $facts [' os' ][' family' ] == ' RedHat' or ($facts [' os' ][' family' ] == ' Gentoo' and $facts [' service_provider' ] == ' systemd' ) {
250
247
postgresql::server::instance::systemd { $service_name:
251
248
port => $port ,
252
249
datadir => $datadir ,
You can’t perform that action at this time.
0 commit comments