puppet-splunk icon indicating copy to clipboard operation
puppet-splunk copied to clipboard

Duplicate declaration: Class[Splunk::Params] is already declared

Open posteingang opened this issue 5 years ago • 2 comments

Hi,

I test the current version of this module and had the following issue: Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Splunk::Params] is already declared

My Puppet profile looks like this:

class profile::splunk {

  include splunk::enterprise
  
  class { 'splunk::prams':
    src_root => 'http://...'
  }
}

Did i missunderstand the module documentation or i am on the wrong way? In my understanding the issue comes with the inheritance of the params class, which will be automatic defined by the class splunk::enterprise.

How can I provide my own values for the splunk::enterprise module (without hiera)? I think it makes no sense to make the params class parameterized.

regards, Martin

posteingang avatar May 06 '19 14:05 posteingang