voxpupuli / puppet-catalog-diff-viewer

A viewer for the puppet-catalog-diff tool
Apache License 2.0
29 stars 10 forks source link

Add setup documentation to README #9

Closed acidprime closed 8 years ago

acidprime commented 9 years ago

Can you when you have a chance add some basic installation installation information , my guess if you are generating on schedule via cron, so peut-être the example puppet cron code or just assumptions like file paths and such. :)

raphink commented 9 years ago

The interface itself needs no installation procedure at all. You can even use it without a web server if you add http: in front of the jquery javascript call in index.html.

As for generating the reports, I'm using the script you provide as example in puppet-catalog-diff. I don't have crontabs yet, this is my next step :smile:

raphink commented 9 years ago

Actually, I have the catalog-diff tool and the catalog-diff-viewer on the puppetdb machine, and I run the catalog-diff tool as puppet.

This way, I can use the normal Puppet certificate to connect to the Puppetmaster and localhost:8080 for the PuppetDB, store the resulting JSON file locally, and have it loaded by the interface using jquery (just a getJSON call, see index.html's example of using loadReport().

traylenator commented 8 years ago

@raphink could you elaborate on your last comment. If I have generated a directory of reports on disk and I have this application running on a webserver on same host how can I pre-seed the drop down menu with the reports?

raphink commented 8 years ago

@traylenator see index.html from the prod branch. The reports must be located in the data/ directory relative to the page.

traylenator commented 8 years ago

@raphink thanks!! got that working.

raphink commented 8 years ago

Cool.