-
Notifications
You must be signed in to change notification settings - Fork 613
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
Fix default value for $service_status on ArchLinux #1410
Conversation
postgresql::params is a classBreaking changes to this file WILL impact these 2 modules (exact match):Breaking changes to this file MAY impact these 3 modules (near match):This module is declared in 70 of 580 indexed public
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it better to change the type definition to allow Undef
? Then the service provider can figure it out by itself.
Actually something we should do for most OSes anyway instead of writing out the systemd command.
That make sense: this module has a load of legacy and I trend to contribute to it by copying the patterns I see in the other OS code and are missing rather than killing everything with fire and make everything simple. I'll work on it on another PR. |
Ah, these commands are used by the "instance" reloading code (when a single service manage multiple clusters). This rely on an I guess the initial idea was to allow to restart a single cluster (i.e. |
@SimonHoenscheid is working on that, but this isn't going to work when it's defined in the class. Perhaps it needs to be modified to something interpolated, though a safe implementation would use an array. I wonder what's best to do here. |
While the PR is not perfect, it can unbreak the module for ArchLinux and that would unbreak CI for some of our Voxpupuli modules. Maybe this fix can go as it is for now (and be released as a patch version), and updated again when we have some cluster management code which would be at least a minor version bump? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems inline with other code within the file. Refactoring the process seems like something for a different PR to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough.
9ca4d36
to
bd412ea
Compare
Rebased on top of |
@puppetlabs/modules any chance to review this very tiny PR that is only one line and would help me/us greatly ? |
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
bd412ea
to
fa9a21c
Compare
I rebased it against main to fix the SLES errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as mentioned in the comments, that's not perfect but will fix Arch Linux.
@bastelfreak THANK YOU, Thank You, thank you |
The value can be overriden from
postgresql::globals
, but if nooverride is provided by the user, the module should use a valid default.
ArchLinux use systemd, so use the relevant
systemctl
command.Fixes #1408