-
Notifications
You must be signed in to change notification settings - Fork 461
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
Allow user to modify loglevel of apt-get update Exec resource #690
Conversation
@tpdownes, Having this as a configurable option totally makes sense. Great change. However The loglevel variable you are referencing is not set anywhere. It will need to be documented in the readme and a test for the new attribute would be preferable. |
@tphoney I'm happy to add a README section and to explicitly set it to undef in |
Any attempt is very welcome, get the attribute in the readme and update the params. That will will be enough. Many thanks !!!! |
… its execution goes unlogged
Thanks for the positive feedback! Should be good to go with revised commit once it builds. FYI: the TOC in README.md begins at 2. Didn't bother fixing. I didn't think the numbers mattered but I tend to just repeat use |
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.
looks good to me!
Many thanks @tpdownes |
Hi, @tpdownes Could you please elaborate how did that solution work for you? P.s. My Foreman version is 1.8.1. |
@legal90 yeah, I had thought it would properly suppress that in Foreman but it doesn't. I left the MR in place because, well, it's nice not to have it at stdout. In Debian 9, a daily systemd timer is automatically installed, so I might think of having |
The goal of this PR is to optionally eliminate unnecessary
Notices
in the syslog and in agent reports. When theapt_update
Exec resource runs successfully the Notice is interpreted by Foreman as a "host modification performed without error." While this is, in some sense, true, it's not something I care to know about at the default level of logging and it's reasonable to optionally reduce it.Confirmed to be a no-op with these hiera data:
Confirmed to eliminate logging at the default agent level of
notice
when these data are used: