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

Duplicate declaration: Class[Splunk::Params] is already declared; #266

Open
ryjogo opened this issue Oct 29, 2019 · 0 comments
Open

Duplicate declaration: Class[Splunk::Params] is already declared; #266

ryjogo opened this issue Oct 29, 2019 · 0 comments

Comments

@ryjogo
Copy link

ryjogo commented Oct 29, 2019

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.10.1
  • Ruby:
  • Distribution: Debian 9
  • Module version: v7.3.0

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

Currently using foreman, so this is the hosts yaml file:

splunk: 
  splunk::forwarder:
    forwarder_input:
      puppetserver-sourcetype:
        section: monitor:///var/log/puppetlabs/puppetserver/puppetserver.log
        setting: sourcetype
        value: puppetserver
  splunk::params:
    server: log.int.redacted.com

What are you seeing

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Duplicate declaration: Class[Splunk::Params] is already declared; cannot redeclare on node redacted.com
However, when I remove the server param from params, and remove splunk::params, then the forwarder input works OK.

What behaviour did you expect instead

both output.conf and input.conf should be populated.

Output log

Any additional information you'd like to impart

Apologies, im pretty new to Puppet, and using foreman probably isn't the best learning experience.

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