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

Configuration of prometheus::server fails when looking up configname

Open madelaney opened this issue 6 years ago • 23 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.10.12
  • Ruby: ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-linux]
  • Distribution: Ubuntu 16.04.5 LTS
  • Module version: v6.2.0

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

node {
include ::prometheus
include ::prometheus::server
}

What are you seeing

The puppet catalog fails to compile.

What behaviour did you expect instead

I'd expect the catalog to compile and run.

Output log

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Lookup of key 'prometheus::server::configname' failed: Data Provider type mismatch: Got String when a hash-like object was expected to access value using 'distro' from key 'os.distro.codename' at /etc/puppetlabs/code/environments/production/manifests/site.pp:41:1 on node <machinename>

Any additional information you'd like to impart

I also tried to follow the example to see if that would help but it was all for not.

madelaney avatar Aug 20 '18 15:08 madelaney