Skip to content

Commit

Permalink
Merge pull request #1520 from bastelfreak/sles
Browse files Browse the repository at this point in the history
Drop EoL SLES 11.4 code
  • Loading branch information
ekohl committed Sep 27, 2023
2 parents 5b58886 + e588823 commit e5a28a0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions manifests/params.pp
Expand Up @@ -264,13 +264,8 @@
$bindir = pick($bindir, "/usr/lib/postgresql${version}/bin")
$datadir = pick($datadir, '/var/lib/pgsql/data')
$confdir = pick($confdir, $datadir)
if $facts['os']['name'] == 'SLES' and versioncmp($facts['os']['release']['full'], '11.4') <= 0 {
$service_status = pick($service_status, "/etc/init.d/${service_name} status")
$service_reload = "/etc/init.d/${service_name} reload"
} else {
$service_status = pick($service_status, "systemctl status ${service_name}")
$service_reload = "systemctl reload ${service_name}"
}
$service_status = pick($service_status, "systemctl status ${service_name}")
$service_reload = "systemctl reload ${service_name}"
$psql_path = pick($psql_path, "${bindir}/psql")

$needs_initdb = pick($needs_initdb, true)
Expand Down

0 comments on commit e5a28a0

Please sign in to comment.