-
Notifications
You must be signed in to change notification settings - Fork 611
Archlinux service reload parameter is incorrect. #734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
But looking at $service_provider = $postgresql::globals::service_providerInstead of: $service_provider = $service_providerAlthough I am not sure if that is explicitly necessary, but it is in line with the way other variables in However, your change doesn't make sense to me because Not sure what you are going for here, and I don't see how this affects your systemd's apparent inability to understand |
|
Thank you for that explanation. The reason I thought it should be After your explanation I'm not entirely sure that my fix is the correct one, but I'm pretty sure the value should be filled in automatically by the postgresql module (by reusing the value found by puppetlabs-std). |
|
You are right, puppetlabs-stdlib defines a fact named But I think the As I see it the "fix" should be to set $service_provider = $postgresql::globals::service_providerin Examples (using Hiera): postgresql::globals::service_provider: "%{::service_provider}"
# Alternatively:
postgresql::globals::service_provider: systemd
I am not sure why this should be necessary. This module usually does The Right Thing for each OS and distribution and I have not yet come across a situation where have had to touch the I guess I still don't understand your original problem. Your Puppet-managed PostgreSQL instance cannot be reloaded because your systemd rejects the |
Yes indeed. According to README.md of this repository: What you're saying contradicts the readme. This isn't as intended / documented. |
|
I think I understand now. What OS (distribution, version) are you using? The reload command does not use the The real problem seems to be that you are apparently using an OS that is not supported by this module. When you look at params.pp you can see that the |
|
Sorry, forgot to mention the OS. Arch Linux has been using systemd for quite some time, so the correct fix should indeed be to change this value as you suggested. |
The cause turned out to be a misconfigured setting for OS type Archlinux.
|
I've corrected the Archlinux specific setting. Thank you for your explanation. |
Archlinux service reload parameter is incorrect.
Archlinux service reload parameter is incorrect.
I first noticed that the initial postgresql used 'service postgresql reload' to reload itself, which caused an error as I'm using systemd.
However, nowhere in postgresql there's a reference to the 'service' command.
I haven't tested wheter deploying postgresql now works without manual intervention, but I have at least verified that the $service_provider value is not Undef.