-
Notifications
You must be signed in to change notification settings - Fork 614
Also perform systemd daemon-reload on Puppet 6.1+ #1233
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
The way daemon-reload is implemented in Puppet 6.1 is by calling systemctl show --property=NeedDaemonReload -- $SERVICE If that returns yes then it performs systemctl daemon-reload. However, this doesn't work reliable because of the particular case. # systemctl show --property=NeedDaemonReload -- postgresql Failed to get properties: Access denied This is probably because the original unit file is removed.
This moves it so it's closer to the actual call to template()
postgresql::server::config is a classthat may have no external impact to Forge modules. This module is declared in 70 of 576 indexed public
|
Codecov Report
@@ Coverage Diff @@
## main #1233 +/- ##
==========================================
+ Coverage 65.81% 66.18% +0.37%
==========================================
Files 14 14
Lines 351 349 -2
==========================================
Hits 231 231
+ Misses 120 118 -2
Continue to review full report at Codecov.
|
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.
wording nitpick on the explanation in the comment, ACK otherwise
this is in line with what we discussed on IRC regarding how and why we've been seeing this error on Puppet6 and how to avoid it.
Co-authored-by: Evgeni Golov <evgeni@golov.de>
Thank you @ekohl for your contribution. |
FYI: this is https://tickets.puppetlabs.com/browse/PUP-9473. |
The way daemon-reload is implemented in Puppet 6.1 is by calling
If that returns yes then it performs systemctl daemon-reload. However, this
doesn't work reliable because of the particular case.
This is probably because the original unit file is removed.