-
Notifications
You must be signed in to change notification settings - Fork 3
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
[RFC] Service restart and config reload should be two distinct things #21
Comments
I'm not sure I understand this fully.
So for |
It happens that Riemann does not reload certificates from disk on config reload. In my case, syslog-ng could not re-connect to riemann because the presented certificate was expired (we renewed our certs, puppet installed it in the riemann config directory and notified the service but the process did not take that new certificate into account). I could test it with the simple config used to setup riemann in riemann-ruby-client CI:
So any notification of the riemann service on certificate change will not result into the service taking this into account: file { '/path/to/riemann/cert.crt':
# ...
notify => Service['riemann'], # does not work when reloading
} |
Ah, so you're saying riemann doesn't do the right thing when catching a |
The module currently change the
restart
parameter of the service resource to reload the configuration instead of restarting the daemon (line 16):puppet-riemann/manifests/service.pp
Lines 13 to 19 in 6af7e72
This has the side effect that notifying the service in the end-user catalog will only reload the configuration and not restart the service as expected. When using mutual TLS authentication and rotating the riemann certificate, a config reload will not take into account the new certificates and the service will continue to use the old one that will eventually expire, leading to communication issues.
Proposal:
restart
parameter to restart riemann completely;exec
, withrefreshonly => true
) to handle the config reload only;The text was updated successfully, but these errors were encountered: