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

Could not autoload puppet/type/splunk_config

Open madelaney opened this issue 5 years ago • 1 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.3.0
  • Ruby: 2.3.1p112
  • Distribution: Ubuntu 18.04 (amd64)
  • Module version: 7.3.1-rc0 (6e54f1a729642b30a8618f717b61491c937cc15c); I also tried 7.3.0 from Puppetforge.

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

In a Librarian puppet file add the entry:

mod 'puppet-splunk',
  git: 'https://github.com/voxpupuli/puppet-splunk.git',
  ref: 'master'

In a node apply:

class {
  splunk::params: 
    build => '7651b7244cf2',
    version => '7.3.1',
    root_url => 'https://internal.company.com'
}

include ::splunk::forwarder

What are you seeing

The catalog is not getting applied due to an issue with autoloading the module inifile.

What behaviour did you expect instead

I would expect to see Splunk applied to this machine.

Output log

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Could not autoload puppet/type/splunk_config: Could not autoload puppet/provider/splunk_metadata/ini_setting: no such file to load -- puppet/util/ini_file (file: /etc/puppetlabs/code/thirdparty/splunk/manifests/params.pp, line: 313, column: 3) on node machine01.company.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Any additional information you'd like to impart

I did look at #239. so I double checked that my inifile module is < 3.0.0; and the inifile is at 2.5.0

    puppetlabs-inifile (2.5.0)
      puppetlabs-translate (< 2.0.0, >= 1.0.0)

madelaney avatar Sep 23 '19 12:09 madelaney