puppet-splunk
                                
                                 puppet-splunk copied to clipboard
                                
                                    puppet-splunk copied to clipboard
                            
                            
                            
                        Declare a monitor resource without any option in inputs.conf
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 3.8.7
- Ruby: ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
- Distribution: Linux siem 4.4.0-31-generic #50~14.04.1-Ubuntu SMP Wed Jul 13 01:07:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
- Module version: 5.0.1
How to reproduce (e.g Puppet code you use)
Try to add a monitor resource without any option in the inputs.conf (or with an empty value)
What are you seeing
The corresponding line is not added
What behaviour did you expect instead
The corresponding line should be added
Output log
Any additional information you'd like to impart
Not working:
splunk::forwarder::forwarder_input  :
    'default_foo':
        section : 'monitor://foo/bar.log'
        tag     : 'splunk_forwarder'
Not working:
splunk::forwarder::forwarder_input  :
    'default_foo':
        section : 'monitor://foo/bar.log'
        setting : 'foo'
        value   : 
        tag     : 'splunk_forwarder'
Working (but I don't want to declare any variable for this monitor entry) :
splunk::forwarder::forwarder_input  :
    'default_foo':
        section : 'monitor://foo/bar.log'
        setting : 'foo'
        value   : ''
        tag     : 'splunk_forwarder'
Working (but I don't want to declare any variable for this monitor entry):
splunk::forwarder::forwarder_input  :
    'default_foo':
        section : 'monitor://foo/bar.log'
        setting : 'foo'
        value   : 'bar'
        tag     : 'splunk_forwarder'
This is really not the splunk module but the inifile module that splunk uses here
https://github.com/puppetlabs/puppetlabs-inifile