Open karen-marks opened 6 years ago
I was getting the same error message inconsistently. Some runs would error, others would complete perfectly fine.
Another case of getting the same error about non-existent purgeforwarder* 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.
Affected Puppet, Ruby, OS and module versions/distributions
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, }