You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Distribution: Server - Ubuntu Bionic, Agent - Ubuntu Trusty
Module version: v3.0.0
How to reproduce (e.g Puppet code you use)
I have quite specific setup - I'm running puppet in some old, long running docker containers. Probably due to that the "networking" fact is empty on such nodes which causes:
{"message":"Server Error: Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /etc/puppet/environments/production/modules/telegraf/manifests/params.pp, line: 37, column: 29)
This line is the problem:
$hostname = $facts['networking']['hostname']
Even when I pass the $hostname directly when I initialize telegraf module the default value can't be fetched from facts and whole catalog fails.
The version shipped with Puppet package All In One (aka AIO) provided by Puppet Inc. is not the same one that version shipped by Puppet package provided by packagers of GNU/Linux distribs.
Unfortunately we can not gives requirement about facter in the metadata.json file, only about Puppet.
Fewer and fewer legacy facts (not structured) are removed from modules.
We use and tests VP modules with AIO packages. My advice is to use the same than us.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
I have quite specific setup - I'm running puppet in some old, long running docker containers. Probably due to that the "networking" fact is empty on such nodes which causes:
This line is the problem:
Even when I pass the $hostname directly when I initialize telegraf module the default value can't be fetched from facts and whole catalog fails.
What are you seeing
What behaviour did you expect instead
That's a good question. The catalog compilation shouldn't fail when $hostname is provided and default value cannot be resolved.
Output log
Any additional information you'd like to impart
The text was updated successfully, but these errors were encountered: