Exported Resources not working

asked 2018-11-26 06:47:35 -0600

Hello,

I've wrote a module to set up the Prometheus node_exporter. As I need to add all FQDNs of the nodes where this module is applied on to a simple file an exported resource makes much sense here. PuppetDB is configured and working.

Here's the declaration, within my config.pp:

@@node_exporter { "${listen_address}":
  hostname    => $ni_trending::hostname,
  listen_port => $ni_trending::listen_port,
}

When the module is applied on the node I get following error:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Invalid export in Class[Ni_trending]: {} is not a resource on node ydixken-dev01.berlin.native

Within the prometheus module I'm retrieving all collected resources via:

Node_exporter <<| |>>

What is missing here?

edit retag flag offensive close merge delete