puppet-splunk
puppet-splunk copied to clipboard
Splunk_indexes resource does not restart Splunk
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 4.10.12
- Ruby: ruby 2.0.0p648
- Distribution: Centos 7.6
- Module version: latest (5b480907ee4bc277f2f930eb60e6babb0a17a7c5)
How to reproduce (e.g Puppet code you use)
splunk_indexes { "indexname/homePath":
value => "\$SPLUNK_DB/indexname/db"
}
What are you seeing
Notice: /Stage[main]/Profile::Splunk::Indexer/Splunk_indexes[indexname/homePath]/ensure: created
What behaviour did you expect instead
Notice: /Stage[main]/Profile::Splunk::Indexer/Splunk_indexes[indexname/homePath]/ensure: created
Scheduling refresh of Service[splunk]
Any additional information you'd like to impart
It is stated in the creation of custom indexes section that You must restart the indexer after editing indexes.conf: https://docs.splunk.com/Documentation/Splunk/7.2.4/Indexer/Setupmultipleindexes
Hi @rbclark, thanks for reporting this. Are you able to provide a patch as a PR?