puppetlabs/puppetlabs-postgresql

postgresql::params does not have a valid default value for $service_status on ArchLinux

Closed this issue · 0 comments

Describe the Bug

On ArchLinux $service_status isn't defined and the module fails hard.
Error message:
Evaluation Error: Error while evaluating a Resource Statement, Postgresql::Server::Instance::Reload[main]: parameter 'service_status' expects a String value, got Undef

Expected Behavior

$service_status should provide a valid value for ArchLinux out of the box.

Steps to Reproduce

On ArchLinux:
include postgresql::server

Additional Context

A quick fix could be to change the value for $service_status (line 138 in params.pp) to "systemctl status ${service_name}"