Closed runswithd6s closed 4 years ago
As simple as this approach is to implement, it's not simple to test. When overriding node attributes in kitchen.yml
, I get conflicting states for CentOS 6 and CentOS 7 hosts (or really the difference between hosts that use imklog
and those that use imjournal
). To make testing easier, and also introduce Rainer script for specifying imfile
attributes, I'm going to introduce a new node attribute: use_imfile
.
(Note: there are some SmartOS test failures that should probably get fixed outside the scope of this PR.)
@tas50, @jtimberman This pull request is ready for review. All tests are passing, and DCO signed-off-by is completed. Please let me know if you'd like anything changed.
@tas50, @jtimberman I took out the feature-flag requirement for this update and instead built the 35-imfile.conf
template whenever the rsyslog_file_input
resource was defined. This makes the integration simpler and behave as one would expect. Are either of you ready for a code-review?
@tas50 I have verified this PR from my side and it LGTM.
@runswithd6s you need to reabse this branch.
@Vasu1105 I can close this one and re-open from a personal fork https://github.com/runswithd6s/chef-rsyslog/tree/bug-119-too_many_imfiles.
@Vasu1105 I can close this one and re-open from a personal fork https://github.com/runswithd6s/chef-rsyslog/tree/bug-119-too_many_imfiles.
Yes, I think you can do that.
Closing. Re-opened as squashed commit in #161
In order use the
rsyslog_file_input
resource,$ModLoad imfile
needs to be defined only once. Removed it from thefile-input.conf.erb
template file and addedREADME.md
instructions to add theimfile
module to the node to enable. Added tests for a second log file and for existence of one module load statement.Description
The file_input resource was incorrectly including the legacy
$ModLoad imfile
declaration in each new config file created from template. Additionally, the legacy style script prevented newer rsyslog daemons from usinginotify
method. This commit adds:rsyslog_file_input
Issues Resolved
Fixed #119.
Check List