-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
purge_inputs => true
leaves artifacts in inputs.conf
#332
Comments
After looking through the code I think the issue might be inside ini_settings module, where it appears to not return any value when it encounters an empty section on scan, I'm not sure the best way to fix this issue |
We at @athenahealth have run into something similar, but with |
One could argue that it's impossible to even set a section without any values with this module respectively with So there's multiple workarounds: Setting a value temporarily via puppet:Apply this first: @splunkforwarder_input { 'temp':
section => 'monitor:///opt/acton/var/log/streamer/streamer.log',
setting => 'temp',
value => 'to_delete',
} Then remove the Using file_lineSee https://forge.puppet.com/modules/puppetlabs/stdlib/4.9.1/types to remove the given section. |
purge_inputs => true
leaves artifacts in input.conf
purge_inputs => true
leaves artifacts in input.conf
purge_inputs => true
leaves artifacts in inputs.conf
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
@splunkforwarder_input
entry for a fileWhat are you seeing
[section]
will be left behind but its content will be removedexample
What behaviour did you expect instead
we are running
Should remove all inputs not defined
The text was updated successfully, but these errors were encountered: