purge_inputs => true
leaves artifacts in inputs.conf
#332
Open
Description
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 7.2
- Ruby: 2
- Distribution: centos 7
- Module version: 9.0.0
How to reproduce (e.g Puppet code you use)
- Create a
@splunkforwarder_input
entry for a file - remove that entry
What are you seeing
[section]
will be left behind but its content will be removed
example
index=ops_metrics
ignoreOlderThan=4d
blacklist=\.([0-9]|gz)$
[monitor:///opt/acton/var/log/streamer/streamer.log] <--- WE DO NOT WANT THIS
[monitor:///opt/acton/classic_core/*.log]
sourcetype=cc_ext_mon_logs
What behaviour did you expect instead
we are running
class { '::splunk::forwarder':
purge_inputs => true,
purge_outputs => true
}
Should remove all inputs not defined
Metadata
Assignees
Labels
No labels