VEGAS/hydra: rekey DB credentials, use Patroni database

This commit is contained in:
Max Headroom 2022-08-09 22:03:48 +02:00
parent 175d3c8b13
commit 0689f5586c
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,7 @@
{ config, inputs, lib, pkgs, tools, ... }:
{ cluster, config, inputs, lib, pkgs, tools, ... }:
let
inherit (tools.meta) domain;
patroni = cluster.config.links.patroni-pg-access;
in
{
age.secrets = {
@ -55,6 +56,7 @@ in
enable = true;
package = inputs.self.packages.${pkgs.system}.hydra;
hydraURL = "https://hydra.${domain}";
dbi = "dbi:Pg:dbname=hydra;host=${patroni.ipv4};port=${patroni.portStr};user=hydra;";
inherit (config.links.hydra) port;
notificationSender = "hydra@${domain}";
buildMachinesFiles = [ "/etc/nix/hydra-machines" ];

Binary file not shown.