voxpupuli / puppet-grafana

Puppet module to manage Grafana
Apache License 2.0
15 stars 106 forks source link

puppetlabs-stdlib has to be >= 9.1 (since puppet-grafana v13) #343

Open XMol opened 10 months ago

XMol commented 10 months ago

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

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).

/cc @bastelfreak

Best regards, Xavier.