File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 111
111
' Suse' => $::operatingsystem ? {
112
112
' SLES' => $::operatingsystemrelease ? {
113
113
/11\.[0-4]/ => ' 91' ,
114
- default => ' 93 ' ,
114
+ default => ' 94 ' ,
115
115
},
116
116
' OpenSuSE' => $::operatingsystemrelease ? {
117
- ' 13.2 ' => ' 93 ' ,
117
+ default => ' 94 ' ,
118
118
},
119
119
default => undef ,
120
120
},
Original file line number Diff line number Diff line change 278
278
$bindir = pick($bindir , " /usr/lib/postgresql${version} /bin" )
279
279
$datadir = pick($datadir , ' /var/lib/pgsql/data' )
280
280
$confdir = pick($confdir , $datadir )
281
- $service_status = pick($service_status , " /etc/init.d/${service_name} status" )
282
- $service_reload = " /etc/init.d/${service_name} reload"
281
+ if $::operatingsystem == ' SLES' and versioncmp($::operatingsystemrelease , 11.4) <= 0 {
282
+ $service_status = pick($service_status , " /etc/init.d/${service_name} status" )
283
+ $service_reload = " /etc/init.d/${service_name} reload"
284
+ } else {
285
+ $service_status = pick($service_status , " systemctl status ${service_name} " )
286
+ $service_reload = " systemctl reload ${service_name} "
287
+ }
283
288
$psql_path = pick($psql_path , " ${bindir} /psql" )
284
289
285
290
$needs_initdb = pick($needs_initdb , true )
You can’t perform that action at this time.
0 commit comments