Skip to content
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

puppet will create outputs.conf and delete it immediately which causes splunk to restart every puppet run #286

Open
jemyers opened this issue May 8, 2020 · 0 comments

Comments

@jemyers
Copy link

jemyers commented May 8, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.18
  • Ruby: 2.4.9
  • Distribution: RHEL 6.10
  • Module version: 8.0.0

How to reproduce (e.g Puppet code you use)

class { '::splunk::forwarder':
splunk_user => $splunk_user,
purge_outputs => false,

What are you seeing

Notice: /Stage[main]/Splunk::Forwarder::Config/File[/opt/splunkforwarder/etc/system/local/outputs.conf]/ensure: created (corrective)
Info: /Stage[main]/Splunk::Forwarder::Config/File[/opt/splunkforwarder/etc/system/local/outputs.conf]: Scheduling refresh of Class[Splunk::Forwarder::Service]

/Stage[main]/Splunk::Forwarder::Config/File[/opt/splunkforwarder/etc/system/local/outputs.conf]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Info: /Stage[main]/Splunk::Forwarder::Config/File[/opt/splunkforwarder/etc/system/local/outputs.conf]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Info: /Stage[main]/Splunk::Forwarder::Config/File[/opt/splunkforwarder/etc/system/local/outputs.conf]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Notice: /Stage[main]/Splunk::Forwarder::Config/Splunkforwarder_output[tcpout_defaultgroup]/ensure: created (corrective)
Info: /Stage[main]/Splunk::Forwarder::Config/Splunkforwarder_output[tcpout_defaultgroup]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Notice: /Stage[main]/Splunk::Forwarder::Config/Splunkforwarder_output[defaultgroup_server]/ensure: created (corrective)
Info: /Stage[main]/Splunk::Forwarder::Config/Splunkforwarder_output[defaultgroup_server]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Info: Class[Splunk::Forwarder::Config]: Scheduling refresh of Class[Splunk::Forwarder::Service]
Info: Class[Splunk::Forwarder::Service]: Scheduling refresh of Service[splunk]
Notice: /Stage[main]/Splunk::Forwarder::Service/Service[splunk]: Triggered 'refresh' from 1 event

What behaviour did you expect instead

How to correct this issue.

Any additional information you'd like to impart

I have tried the fix mentioned in #157 but the splunk module does not apply the purge_outputs value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant