Affected Puppet, Ruby, OS and module versions/distributions
Module version: >= 13.0.0
How to reproduce (e.g Puppet code you use)
Combine puppet-grafana >= 13.0.0 with puppetlabs-stdlib <= 9.0.0
What are you seeing
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Unknown function: 'stdlib::to_yaml'. (file: /etc/puppetlabs/code/environments/puppet7/modules/grafana/templates/pdatasources.yaml.epp, line: 3, column: 5) on node datacenter-metrics.scc.kit.edu
Any additional information you'd like to impart
The dependencies on the puppetlabs-stdlib module need to be updated. Starting with puppet-grafava 13.0.0, at least version 9.1.0 of puppetlabs-stdlib needs to be provided, since the template pdatasources.yaml.epp calls the function stdlib::to_yaml, which did not exist earlier (though to_yaml does still work in latest release and is marked deprecated).
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Combine puppet-grafana >= 13.0.0 with puppetlabs-stdlib <= 9.0.0
What are you seeing
Any additional information you'd like to impart
The dependencies on the puppetlabs-stdlib module need to be updated. Starting with puppet-grafava 13.0.0, at least version 9.1.0 of puppetlabs-stdlib needs to be provided, since the template
pdatasources.yaml.epp
calls the functionstdlib::to_yaml
, which did not exist earlier (thoughto_yaml
does still work in latest release and is marked deprecated).to_yaml
into thestdlib
namespacepdatasources.yaml.epp
, but notmetadata.json
/cc @bastelfreak
Best regards, Xavier.