Commit Graph

4 Commits

Author SHA1 Message Date
Spencer Krum
e71f30ab50 Add flag to enable or disable the query page
Puppetboard is an excelent radiator of information, but sometimes
we want to expose information to users we don't trust giving full
access to the PuppetDB query language.

I would reccomend that Puppetboard be run twice. One, with query
enabled, run on a port behind apache login. Another, with query
disabled, run unproxied for the unwashed masses.

Closes #10.
2013-10-13 14:32:24 +02:00
Daniele Sluijters
cc87e54cea Support PuppetDB API v3.
Recently changes were made to pypuppetdb to support, at a basic level,
the v3 API introduced with PuppetDB 1.5.

This commit changes some internals of Puppetboard to handle the new
situation:
 * The experimental endpoints are gone, so is the ExperimentalDisabled
   Error;
 * v2 API can no longer access Reports/Events so we now check that we're
   talking at least v3 API;
 * Introduce a configuration setting PUPPETDB_API which takes an integer
   repersenting the API version we want to talk.
2013-10-11 11:20:34 +02:00
Spencer Krum
cb64b73832 dev.py: exposing some parameters 2013-08-21 16:37:25 -07:00
Daniele Sluijters
f41dd99f60 puppetboard: Commit the current code.
This is all the code after a week and a bit hacking on this project.
It's in a rather experimental state but should work with a little
effort.
2013-08-07 09:05:31 +02:00