VEGAS/hydra: rekey DB credentials, use Patroni database
This commit is contained in:
parent
175d3c8b13
commit
0689f5586c
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ config, inputs, lib, pkgs, tools, ... }:
|
{ cluster, config, inputs, lib, pkgs, tools, ... }:
|
||||||
let
|
let
|
||||||
inherit (tools.meta) domain;
|
inherit (tools.meta) domain;
|
||||||
|
patroni = cluster.config.links.patroni-pg-access;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
|
@ -55,6 +56,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.self.packages.${pkgs.system}.hydra;
|
package = inputs.self.packages.${pkgs.system}.hydra;
|
||||||
hydraURL = "https://hydra.${domain}";
|
hydraURL = "https://hydra.${domain}";
|
||||||
|
dbi = "dbi:Pg:dbname=hydra;host=${patroni.ipv4};port=${patroni.portStr};user=hydra;";
|
||||||
inherit (config.links.hydra) port;
|
inherit (config.links.hydra) port;
|
||||||
notificationSender = "hydra@${domain}";
|
notificationSender = "hydra@${domain}";
|
||||||
buildMachinesFiles = [ "/etc/nix/hydra-machines" ];
|
buildMachinesFiles = [ "/etc/nix/hydra-machines" ];
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue