Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Conversation

plazonic
Copy link

@plazonic plazonic commented Apr 6, 2020

Hello,

as in our setup we have a few environments, of which some tend to become old/orphaned easily and yet contain a lot of hosts, I've taken a stab at adding support for environments.

Database gets created with environment column and will automatically add it if it does not have it already. If running the server it will also attempt to re-parse all of the past reports and fill out null environment columns. This might take a while (if many reports) so could be a bit of a problem - might be better to make this optional or default to setting environment to production for empty ones.

I've added environment column to all of the web pages and Environments button on top left of the home page. The button allows browsing to either all or individual /environment/NAME pages which then show data only for those environments.

Finally, I can't claim to know go (really, my first time actually changing code) so I hope it's not too bad.

Thanks for a really useful utility!

@skx
Copy link
Owner

skx commented Apr 11, 2020

Thanks for your contribution! If I understand correctly this will close #54?

I'm now no longer running puppet, or puppet-summary, as I consolidated a lot of my services but I'm happy to read your code and setup a quick test-environment to sanity-check it. Unfortunately that'll take me a couple of days, but I'll make sure I give feedback by Monday at the latest.

Thanks again :)

@skx skx self-assigned this Apr 11, 2020
@skx
Copy link
Owner

skx commented Apr 20, 2020

It took me longer than I wanted to get round to testing this; but it works well.

Great job, thank-you for your contribution!

@skx skx merged commit 238ea7f into skx:master Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants