Skip to content

Commit 9ca4d36

Browse files
committed
Fix default value for $service_status on ArchLinux
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
1 parent 3b13b89 commit 9ca4d36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/params.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
$confdir = pick($confdir, $datadir)
136136
$psql_path = pick($psql_path, "${bindir}/psql")
137137

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

0 commit comments

Comments
 (0)