bfraser / puppet-grafana

Puppet module to manage Grafana
Apache License 2.0
39 stars 204 forks source link

grafana_dashboard can't use it #114

Open Jerry1488 opened 8 years ago

Jerry1488 commented 8 years ago

Hi,

I did the simplest init.pp to test grafana_dashboard. I also exported a test dashboard I created in grafana as test.json and put it in grafana/templates. But when I test my module I gete this error: Error: /Stage[main]/Grafana/Grafana_dashboard[testboard]: Could not evaluate: can't convert Hash into String

I just can't figure out why it's happening, is there a problem with my json file since I exported it directly from grafana I assumed it was ok. If not how should it looks.

Thx!

class grafana {

grafana_dashboard { 'testboard': grafana_url => 'http://localhost:3000', grafana_user => 'admin', grafana_password => 'admin', content => template('grafana/test.json'), } }

kbon commented 8 years ago

I had the same error on CentOS 6.8. Created #115 with a fix which worked for my case.