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
Error: Failed to apply catalog: Parameter json_data failed on Grafana_datasource[graphite.staging]: json_data should be a Hash!
What behaviour did you expect instead
I expect the datasource to be added with the graphite version being set.
Output log
Any additional information you'd like to impart
If I comment out the json_data line, the catalog compiles and that datasource is added correctly, other than the graphite version is not being set (as I am not defining it outside of the erb
The text was updated successfully, but these errors were encountered:
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
$graphite_version = '0.9'
grafana_datasource { 'graphite.staging':
type => 'graphite',
url => $graphite_url,
access_mode => 'proxy',
is_default => true,
grafana_url => 'http://localhost:8080',
grafana_user => 'admin',
grafana_password => $admin_password,
grafana_api_path => '/api',
json_data => template('profile/grafana/datasources/graphite.json.erb')
graphite.json.erb = {
"graphiteVersion":"<%= @graphite_version -%>"
}
What are you seeing
Error: Failed to apply catalog: Parameter json_data failed on Grafana_datasource[graphite.staging]: json_data should be a Hash!
What behaviour did you expect instead
I expect the datasource to be added with the graphite version being set.
Output log
Any additional information you'd like to impart
If I comment out the json_data line, the catalog compiles and that datasource is added correctly, other than the graphite version is not being set (as I am not defining it outside of the erb
The text was updated successfully, but these errors were encountered: