voxpupuli / puppet-splunk

Manage Splunk servers and forwarders using Puppet
https://forge.puppet.com/puppet/splunk
Apache License 2.0
40 stars 121 forks source link

Declare a monitor resource without any option in inputs.conf #68

Open Vincent-- opened 7 years ago

Vincent-- commented 7 years ago

Affected Puppet, Ruby, OS and module versions/distributions

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'
TraGicCode commented 6 years ago

This is really not the splunk module but the inifile module that splunk uses here

https://github.com/puppetlabs/puppetlabs-inifile