-
Notifications
You must be signed in to change notification settings - Fork 612
Respect $service_status on Red Hat-based distros #1351
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
Respect $service_status on Red Hat-based distros #1351
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 579 indexed public
|
@@ -84,10 +84,10 @@ | |||
|
|||
if pick($service_provider, $facts['service_provider']) == 'systemd' { | |||
$service_reload = "systemctl reload ${service_name}" | |||
$service_status = "systemctl status ${service_name}" | |||
$service_status = pick($service_status, "systemctl status ${service_name}") |
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.
I checked how/when $service_status
is set and there is a lot that could be improved/simplified here :(
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.
See #1349 for more discussion on that. I also wonder if this isn't really redundant since AFAIK Puppet itself can determine the status using these commands.
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.
LGTM
Looks like a good improvement to me |
Fixes: 7b282bd