Skip to content

hunner/puppetboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puppetboard

Puppetboard is a web interface to PuppetDB aiming to replace the reporting functionality of Puppet Dashboard.

Puppetboard relies on the pypuppetdb library to fetch data from PuppetDB and is built with the help of the Flask microframework.

Because this project is powered by Flask we are restricted to:
  • Python 2.6
  • Python 2.7

View of a node

Word of caution

Puppetboard is very, very young but it works fairly well.

That being said a lot of the code is very exeprimental, just trying to figure out what works and what not, what we need to do different and what features we need on the PuppetDB side of things.

As such you should be at least comfortable handling a few errors this might throw at you.

Installation

Currently you can only run from source:

$ git clone https://github.com/nedap/puppetboard
$ pip install -r requirements.txt

This will install all the requirements for Puppetboard.

Run it

Development

You can run in it in development mode by simple executing:

$ python dev.py

Production

For WSGI capable webservers a wsgi.py is provided which mod_wsgi and uwsgi can deal with.

In the case of uwsgi you'll of course need something like nginx in front of it to proxy the requests to it.

Don't forget that you also need to serve the static/ folder on the /static URL of your vhost. (I'm considering embedding the little additional Javascript and CSS this application has so no one has to bother with that).

Configuration

Puppetboard has some configuration settings, their defaults can be viewed in puppetboard/default_settings.py.

Additionally Puppetboard will look for an environment variable called PUPPETBOARD_SETTINGS pointing to a file with identical markup as default_settings.py. Any setting defined in PUPPETBOARD_SETTINGS will override the defaults.

Experimental

Pypuppetdb and Puppetboard can query and display information from PuppetDB's experimental API endpoints.

However, if you haven't enabled them for Puppet it isn't particularily useful to enable them here as there will be no data to retrieve.

Contributing

We welcome contributions to this project. However, there are a few ground rules contributors should be aware of.

License

This project is licensed under the Apache v2.0 License. As such, your contributions, once accepted, are automatically covered by this license.

Commit messages

Write decent commit messages. Don't use swear words and refrain from uninformative commit messages as 'fixed typo'.

The preferred format of a commit message:

docs/quickstart: Fixed a typo in the Nodes section.

If needed, elaborate further on this commit. Feel free to write a
complete blog post here if that helps us understand what this is
all about.

Fixes #4 and resolves #2.

If you'd like a more elaborate guide on how to write and format your commit messages have a look at this post by Tim Pope.

Screenshots

Node without experimental endpoints endabled

Facts view

Nodes table without experimental endpoints enabled

Overview / Index / Homepage

Query view

With experimental endpoints

Nodes table with experimental endpoints enabled

Node view with experimental endpoints enabled

Nodes table with experimental endpoints enabled

Error page

Accessing disabled experimental feature

Error message

About

Web frontend for PuppetDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 78.7%
  • Python 18.0%
  • CoffeeScript 1.7%
  • CSS 1.6%