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

purge_outputs => true doesn't remove groups completely #264

Open
bsg-sfrazer opened this issue Oct 21, 2019 · 0 comments
Open

purge_outputs => true doesn't remove groups completely #264

bsg-sfrazer opened this issue Oct 21, 2019 · 0 comments

Comments

@bsg-sfrazer
Copy link

bsg-sfrazer commented Oct 21, 2019

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.10.12
  • Ruby:2.1.9p490
  • Distribution: CentOS
  • Module version: 7.3.0

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

Configure a forwarder_output such as:

[tcpout:splunk-index-01.example.com_9997]
server=splunk-index-01.example.com:9997

Then try to change to a different group name using purge_outputs to remove the old one:

  class { '::splunk::forwarder':
    purge_outputs => true,
  }

What are you seeing

The server= line is removed, but the group heading remains.

What behaviour did you expect instead

Purge_outputs should delete the group name as well as the individual entry if no other entires exist for that group.

Output log

Notice: /Stage[main]/Splunk::Params/Splunkforwarder_output[Purge system/local default/defaultGroup]/ensure: removed
Notice: /Stage[main]/Splunk::Params/Splunkforwarder_output[Purge system/local tcpout:splunk-index-01.example.com_9997/server]/ensure: removed
Notice: /Stage[main]/Splunk::Params/Splunkforwarder_output[Purge system/local tcpout:default-group/server]/ensure: removed
Notice: /Stage[main]/Splunk::Forwarder::Config/Splunkforwarder_output[tcpout_defaultgroup]/ensure: created
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
Info: /Stage[main]/Splunk::Forwarder::Config/Splunkforwarder_output[defaultgroup_server]: Scheduling refresh of Class[Splunk::Forwarder::Service]

Any additional information you'd like to impart

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