Code is tested on a fc20, against a remote puppetdb 2.0.0 (puppet 3.6.1) installed on a centos 6.5
- due to the hash syntax, ruby version 1.9.3 or better is needed
- sudo
yum install gcc-c++ - `sudo gem install execjs -v 2.0.2
- dashing depends on this version, clashes with coffee-script, which will pull in 2.1.0)
- if new versions are installed, use 'gem uninstall execjs' and remove a;; versions other than v2.0.2
sudo gem install dashingsudo gem install bundler
- unpack the code
- cd <chapter>/puppetdash
bundle install- if not running on the puppetdb
- change all references
localhostto puppetdb server host name
- change all references
dashing start- A demo dashboard should be available at
http://localhost:3030
- A demo dashboard should be available at
-
In
jobs/puppet.rb-
convert the local time (
Time.now) to UTC using thegmtimemethod. Timestamps are recorded in UTS in puppetdbutc_time = Time.now.gmtimetime_past = (utc_time - 1800)ftime_now = utc_time.strftime("%FT%T")ftime_past = time_past.strftime("%FT%T") -
Added the puppetdb variable, and adjusted the URI's.
-
-
in
dashboard/puppet.erb-
the widgets for the changed/pending/failed adjusted for the meter widget (were still number widget)
`
- `
- `
- `
`
`
-
-
Added in the README.md of the code, that the variable puppetdb='localhost' should be adjusted when using a remote puppetdb