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

no parameter named 'purge_forwarder_deploymentclient'

Open karen-marks opened this issue 7 years ago • 2 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: Enterprise v2016.4.2
  • Ruby: 2.1.9p490 (bundled)
  • Distribution: RHEL6
  • Module version: Tried 6.3.1 and 7.0.0

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

class profiles::splunkforwarder {

$version = hiera('splunk::version', '6.5.0') $build = hiera('splunk::build', '59c8927def0f') $src_root = hiera('splunk::src_root') $my_splunk_server = hiera('splunk::deploymentserver')

class { '::splunk::params': server => $my_splunk_server, version => $version, build => $build, src_root => $src_root, }

include ::splunk::forwarder

What are you seeing

When trying to install just the forwarder on a host it errors out on the purge_* parameters saying they don't exist, even though they are defined in forwarder.pp

What behaviour did you expect instead

Successful puppet run with the splunk forwarder installed, configured and running.

Output log

Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: no parameter named 'purge_forwarder_deploymentclient' at /etc/puppetlabs/code/environments/karen/modules/splunk/manifests/params.pp:247 on Splunk_config[splunk] at /etc/puppetlabs/code/environments/karen/modules/splunk/manifests/params.pp:247 on node pup-karen.corp.cira.ca Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

Any additional information you'd like to impart

When I comment out the following section from the forwarder.pp file, it functions as expected: Splunk_config['splunk'] { purge_forwarder_deploymentclient => $purge_deploymentclient, purge_forwarder_outputs => $purge_outputs, purge_forwarder_inputs => $purge_inputs, purge_forwarder_props => $purge_props, purge_forwarder_transforms => $purge_transforms, purge_forwarder_web => $purge_web, }

karen-marks avatar Jan 19 '18 20:01 karen-marks

I was getting the same error message inconsistently. Some runs would error, others would complete perfectly fine.

#158 recommended restarting puppet server, and that appears to have solved the issue for me as well.

0x6d617474 avatar Feb 27 '18 15:02 0x6d617474

Another case of getting the same error about non-existent purge_forwarder_* parameters in params.pp. Restarting puppetserver resolved the issue. Not sure why that works.

Details on my environment: RHEL 6.9, open source Puppet 5.3 server and agents, using R10k to deploy environments, puppet-splunk module at v7.1.0, only installing the forwarder.

lonebrave avatar May 08 '18 21:05 lonebrave