Skip to content

Commit

Permalink
Fix default value for $service_status on ArchLinux
Browse files Browse the repository at this point in the history
The value can be overriden from `postgresql::globals`, but if no
override is provided by the user, the module should use a valid default.
ArchLinux use systemd, so use the relevant `systemctl` command.

Fixes #1408
  • Loading branch information
smortex authored and bastelfreak committed Jun 30, 2023
1 parent 77fd8aa commit fa9a21c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
$confdir = pick($confdir, $datadir)
$psql_path = pick($psql_path, "${bindir}/psql")

$service_status = $service_status
$service_status = pick($service_status, "systemctl status ${service_name}")
$service_reload = "systemctl reload ${service_name}"
$python_package_name = pick($python_package_name, 'python-psycopg2')
# Archlinux does not have a perl::DBD::Pg package
Expand Down

0 comments on commit fa9a21c

Please sign in to comment.