refactor(ops): Break out prometheus-fail2ban-exporter module

Break out the configuration for the prometheus fail2ban exporter, which
is a simple python script that exports stats from fail2ban as a
prometheus-scrapable textfile, from Mugwump into a reusable nixos module
in //ops/nixos/modules.

Change-Id: I5451c9c5de6c7bc4431150ae596a9c758bf1b693
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3136
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Griffin Smith 2021-05-23 13:58:24 +02:00 committed by grfn
parent 8587bb5f67
commit 702594ca64
4 changed files with 72 additions and 35 deletions

View file

@ -9,9 +9,7 @@ rec {
mugwump = import ./machines/mugwump.nix;
mugwumpSystem = (depot.third_party.nixos {
configuration = mugwump;
}).system;
mugwumpSystem = (depot.ops.nixos.nixosFor mugwump).system;
roswell = import ./machines/roswell.nix;