Commit Graph

286 Commits

Author SHA1 Message Date
Rick Fletcher
4c13898490 Make "skips" color consistent
"Skips" were highlighted with orange on one page and yellow on another. This change makes them consistent, and switches the color to "black" for accessibility reasons. (The contrast between the shades of orange and red used for skips and errors was *very* low. Indistinguishable on some screens.)
2015-10-12 00:26:16 -04:00
Corey Hammerton
9fbd283c9f puppetboard: Version bump to 0.0.5 2015-10-09 20:22:37 -04:00
Spencer Krum
5842326f2e Merge pull request #157 from corey-hammerton/inventory
puppetboard/app.py: Optimizing the inventory page
2015-10-05 18:18:59 -04:00
Corey Hammerton
a3473abf61 puppetboard: Adding a more intuitive catalog view
A new endpoint in the header, Catalogs, takes the user to a page with a node
table similar to that in the nodes page. This table shows the node with a
link to the node page, the catalog timestamp with a link to the catalog
page and a small form with a select field to be used to compare the
catalog of this row's node with that of another node.
2015-09-23 11:16:20 -04:00
Corey Hammerton
52162c04a6 puppetboard/app.py: Optimizing the inventory page
Instead of querying PuppetDB for every fact that it knows about only
querying it for the fact names that it knows about. The result is a
much smaller result set that is more noticable on environments with
large numbers of nodes and/or facts.

On one environment with > 2500 fact-names and 35 nodes a curl test
to the facts endpoint without any query string returned in ~3.5 seconds.
Ran another curl test to the facts endpoint with the query string that
the code in this commit creates, the command finished in ~0.040 seconds.
2015-09-04 21:23:19 -04:00
Spencer Krum
ee98250fa9 Merge pull request #156 from corey-hammerton/catalog
puppetboard: Adding Catalog Viewer
2015-08-20 00:49:28 -07:00
Corey Hammerton
bce33aee0f puppetboard: Adding Catalog Viewer
This makes use of the available catalog endpoints in pypuppetdb and PuppetDB
and displays to administrators the last compiled catalog for a node,
if the variable ENABLE_CATALOG is True (defaults to False)
2015-08-19 21:01:11 -04:00
Spencer Krum
1253739bf3 Merge pull request #135 from stoyansbg/master
Added inventory page along with a navbar link.
2015-06-09 16:24:19 -07:00
Stoyan Stoyanov
96ef996f60 inventory.html: Brought UI up to date.
Updated template to match the style of the rest of the templates
that were updated a year ago when the project switched to using
Semantic-UI.
2015-06-09 15:46:08 -07:00
Stoyan Stoyanov
f6dbb249e6 app.py: inventory - account for non-existing facts
Set the fact value to be displayed in the inventory tab to "undef"
if the fact does not exist for a node.
2015-05-12 15:15:11 -07:00
Daniele Sluijters
adf24e4a3a Merge pull request #142 from ventris/master
Update nodes.html
2015-05-11 14:52:22 +02:00
Sebastian Svensson
3d0de31e86 Update nodes.html
changed node to node_name
2015-05-11 14:29:07 +02:00
Fotis Gimian
39feddcc64 Merge pull request #141 from ventris/master
Fixed variabel names in index.html and app.py
2015-05-11 19:44:53 +10:00
Sebastian Svensson
15f2b2c4ed renamed node in @app.route('/reports/<node>') to node_name and renamed node in {% if node.report_timestamp %} to node_name 2015-05-11 11:33:40 +02:00
Fotis Gimian
8f2d5cbc34 Removed jquery-tablesort (tablesort.min.js) as the project is now using jquery-tablesorter instead 2015-05-11 07:29:00 +10:00
Fotis Gimian
25df8c071a Allowed the ability to provide a static SECRET_KEY for use with CSRF protection (fixes #128) 2015-05-10 23:24:48 +10:00
Daniele Sluijters
3f681da85d Merge pull request #140 from bluecmd/patch-1
Patch _macros.html for the latest cleanups
2015-05-10 15:21:34 +02:00
Christian Svensson
91f09b8f56 Patch _macros.html for the latest cleanups
97bbe9 renamed the keyword arguments for report(node_name, report_id) but _macros.html wasn't updated
2015-05-10 14:16:18 +01:00
Fotis Gimian
1b48e36ea5 Repaired failure to redirect the latest report for a node 2015-05-10 21:08:40 +10:00
Fotis Gimian
4bdf2ecc12 Switched to a compact table layout for fact listings 2015-05-10 20:53:28 +10:00
Fotis Gimian
bd4a38031f Updated wording relating to Python version compatibility (fixes #116) 2015-05-10 20:19:51 +10:00
Fotis Gimian
97bbe96465 Updated all Python code to be fully flake8 compliant 2015-05-10 20:08:09 +10:00
Daniele Sluijters
70ee60c3c2 Merge pull request #139 from fgimian/fix-date-sorting
Repaired sorting of date columns
2015-05-10 11:51:29 +02:00
Fotis Gimian
fd351f4483 Repaired sorting of date columns 2015-05-10 19:49:29 +10:00
Daniele Sluijters
df3a797f0f Merge pull request #137 from fgimian/further-details-for-nodes
Further details for nodes added (skip count and reported date on overview page)
2015-05-10 11:39:43 +02:00
Fotis Gimian
62d1f26f7a Added the report column to the dashboard page 2015-05-10 19:32:27 +10:00
Fotis Gimian
59b7717e8f Added a skipped count for nodes in the overview and nodes pages 2015-05-10 19:32:22 +10:00
Daniele Sluijters
1a323a7700 Merge pull request #138 from fgimian/dev-server
Development server (dev.py) improvements
2015-05-10 10:14:00 +02:00
Fotis Gimian
97e0fb0015 The dev.py script will now also start coffee in watch mode to automatically compile coffee files during development 2015-05-10 17:17:19 +10:00
Fotis Gimian
002006b177 Corrected dev script to correctly use user-provided settings 2015-05-10 16:06:43 +10:00
Stoyan Stoyanov
d75d5007a3 Added inventory page along with a navbar link.
Added inventory page showing a table similar to the "Nodes" one,
but containing any customizable set of facts.

A setting INVENTORY_FACTS has been added. It controls the list
of facts to be displayed along with a description for the header
of the table.
2015-05-07 14:38:25 -07:00
Daniele Sluijters
a1160d2c1f setup: Pin version requirements of WTForms.
Mentions: #124
2015-03-04 17:58:37 +01:00
Daniele Sluijters
c1f819b542 Merge pull request #122 from juliengk/layout
Add version and current year to the layout
2015-02-27 21:15:56 +01:00
Julien Kassar
a01a5cf9e0 Add version and current year to the layout
Fixes #78
2015-02-27 13:39:36 -05:00
Daniele Sluijters
e3dba5e77f Merge pull request #117 from juliengk/scroll-top
Add scroll to top button
2015-02-27 11:07:23 +01:00
Julien Kassar
cf30d32869 Add scroll to top button 2015-02-26 10:42:14 -05:00
Daniele Sluijters
cb4e6a71bc README: Add missing opening '<' 2015-02-25 18:08:41 +01:00
Daniele Sluijters
72267e8283 README: Add some additional config to apache.
Based on comment @propyless in #113.
2015-02-25 18:07:57 +01:00
Daniele Sluijters
8e074ae1cd Merge pull request #118 from juliengk/docker
Add reference to docker image
2015-02-18 08:51:20 +01:00
Julien Kassar
10e24a6749 Add reference to docker image 2015-02-17 18:49:23 -05:00
Daniele Sluijters
44188fd12a Merge pull request #91 from seantis/master
Accept the configuration_version as alternative in the report view.
2015-02-13 09:42:07 +01:00
Daniele Sluijters
bb96709c66 Merge pull request #84 from blkperl/add_c3_charts
Replace chart.js with c3.js
2015-02-13 09:30:02 +01:00
Spencer Krum
7a0c4bd837 Selecting which graphs to show with config option
Known-good facts to graph are set as defaults. This list is merged
with whatever facts are listed in settings.py
2015-01-24 21:15:52 -08:00
William Van Hevelingen
3940c84de3 Improve speed with facts that have many unique values
When there are more than 15 unique fact values it groups the least
commonly used into an other label.

Co-authored-by: Sage Imel <sage@cat.pdx.edu>
Co-authored-by: Ryan Niebur <ryan@cat.pdx.edu>
2015-01-24 21:15:23 -08:00
William Van Hevelingen
8e063e7f15 Replace chart.js with c3.js
chart.js is poorly maintained and has been disabled. c3.js
has active development and removes the need for two charts
on the facts page.

Co-authored-by: Sage Imel <sage@cat.pdx.edu>
Co-authored-by: Ryan Niebur <ryan@cat.pdx.edu>
2015-01-24 21:15:23 -08:00
Daniele Sluijters
95a6c4b947 Merge pull request #114 from jarpy/master
Fix proxy_pass line in nginx+gunicorn example.
2015-01-20 12:35:22 -05:00
Toby McLaughlin
eb7e8e38a1 Fix proxy_pass line in nginx+gunicorn example.
The example was missing the protocol part of the backend server URL
('http://'). This causes nginx to complain of a "malformed URL".
2015-01-15 14:32:45 +11:00
Daniele Sluijters
86328a2b4d Merge pull request #111 from yo61/add_requirements
Add requires section to setup.cfg
2015-01-02 22:42:03 +01:00
Robin Bowes
d0ae62d78d Add requires section to setup.cfg 2015-01-02 15:48:48 +00:00
Daniele Sluijters
8f23bc1a72 Merge pull request #110 from yo61/master
Add python-setuptools as a build requirement for bdist_rpm
2014-12-31 17:08:12 +01:00