##Description Simple Dashing widget (and associated job) to display general puppetdb status. Pulled the api calls from Nedap's Puppetboard. Excellent tool BTW.
This config is configured for working with HTTPS, but if you dont want to use it(HTTPS), you could just remove lines 4-16 from puppetdb_stats.rb file.
You have to generate client certs on puppetmaster/puppetca with following line:
$ puppet cert generate puppetdb_dashing
Then you should copy from it generated certs, which should be placed in:
CA.pem:
/var/lib/puppet/ssl/certs/ca.pem
Public cert
/var/lib/puppet/ssl/certs/puppetdb_dashing.pem
Private key
/var/lib/puppet/ssl/private_keys/puppetdb_dashing.pem
Then you have to provide path for dashing to thats certs, and take care for their ownership and permissions in jobs/puppetdb_stats.rb
##Dependencies None
##Usage To use this widget, copy puppetdb_stats.html, puppetdb_stats.coffee, and puppetdb_stats.scss into the /widgets/puppetdb_stats directory. Put the puppetdb_stats.rb file in your /jobs folder. Or you can do this the easy way and run the following in your dashing directory
$> dashing install bc07528ed7ae79bf49aa
create widgets/puppetdb_stats/puppetdb_stats.coffee
create widgets/puppetdb_stats/puppetdb_stats.html
create jobs/puppetdb_stats.rb
create widgets/puppetdb_stats/puppetdb_stats.scss
Don't forget to edit the Gemfile and run bundle install if needed. More information for this widget can be found at https://gist.github.com/a49981b299dff184c04a
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
<li data-row="1" data-col="1" data-sizex="2" data-sizey="1">
<div data-id="puppetdb_stats" data-view="PuppetdbStats"></div>
</li>
Hello,
Can you please offer help with this error I'm getting?
/home/vajobs/dashboards/webstats/jobs/puppetdb_stats.rb:35:in
<top (required)>': undefined local variable or methodhttp' for main:Object (NameError)
I have the gem
http (0.8.4, 0.6.4, 0.6.1)
installed locally.Maybe I am missing a line in my Gemfile? Adding
net/https
there makes it fail on bundle install. What should be added to my Gemfile?Thanks