##Description Simple Dashing widget (and associated job) to display general puppetdb status. Pulled the api calls from Nedap's Puppetboard. Excellent tool BTW.
WARNING: This only works if puppetdb is listening on HTTP. I have not gotten around to getting this to work with SSL client certificates yet. If you know how, please leave them at the comments below.
##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 a49981b299dff184c04a
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>
Hi, Thanks for this widget.
I managed to get it working with SSL in the following manner - no need for the puppetdb-ruby gem
modify the code around the http=Net::HTTP.new section as follows :-
Note - whichever user this runs under will need read access the the puppet ssl directory.
Hope this helps someone