* puppetboard/app.py: Adding Radiator view
Part 2 of https://github.com/voxpupuli/puppetboard/issues/70
This is a refactoring of the changes in https://github.com/voxpupuli/puppetboard/pull/100.
Adds a simple Heads-Up Display of the last run statuses of managed nodes,
either environment filtered or not.
* puppetboard/app.py: Fixing environment filters and metric strings.
* The names of the population metrics have changes in PuppetDB 4.0, the initial
commit used the metric names from PuppetDB 2.x.
* The main nodes query did not include a query string to filter on environments.
* Update to Semantic UI 2.1.6
Basically I tried to rebuild the old layout as closely as possible.
It is a bit more mobile friendly but still misses Semantic UIs collapsable menu:
https://github.com/Semantic-Org/Semantic-UI/issues/157
+ ditch old tablesorter for recommended one
+ use em instead of percentage for status labels in macros
Overview:
+ sort overview by report date per default
+ slightly different colors
Facts:
+ template based approach to even out the columns in facts view
+ don't show empty containers
+ needed an additional variable in context
* get rid of unnecessary semantic src files
* more cleanup
* clean jquery-tablesort directory as well
* drop unused theme files
* remove symlinks in static/{js,css}
* semantic_update
+ bump to semantic 2.1.8
+ minor adjustments
- default-sort class in tables
- table type in inventory
- fixed and wrapped table for reports
* updated screenshots
Some excerpts from CHANGELOG.rst include:
- Increasing the pypuppetdb requirements from 0.1.x to 0.2.x
- The Reports page now lists reports from the reports endpoint instead of
a link to a PuppetDB issue with a feature request
- Adding a Catalogs page to view either individual node catalogs or compare
them against other nodes
- New environment awareness adds a new query parameter to all applicable
endpoints to filter results based on the current environment. If the
default environment 'production' is not available, or any other unavailable
environment, the user is redirected to the first known environment.
- Adding pagination functionality for reports (for now) based on the value of
the REPORTS_COUNT configuration option (used for the limit and the offset
calculation). Implementation also makes it possible for other UI enhancements.
- Removing the limit_reports function from puppetboard/utils.py since paging
parameters are now accepted by the pypuppetdb endpoint functions.
- Bumping the version to 0.1.0
This commit uses the new parameter with_status from nedap/pypuppetdb#18
Node status is now shown as text with the additional information of
failed/succeded events, unreported time
The statistics on Overview now show the *number of nodes*
that have status failed/changed/unreported
- the amount of hours is defined as `UNRESPONSIVE_HOURS` in default_settings.py
- small status layout improvement in nodes list
- latest report button in nodes list
- nedap/pypuppetdb repo as requirement ( new api was merged nedap/pypuppetdb#17 )
The following frontend features are implemented
- Number of failures, successes, noops/skips in overview
- Show latest reports with 1 or more events in overview
- Direct links to latest Report
- Number and types of events in nodes list