1
0
Fork 0

fix dependency order between keycloak and haproxy

This commit is contained in:
ibizaman 2023-02-19 13:39:31 -08:00
parent 957eefe97e
commit 6d0cceac34
2 changed files with 5 additions and 2 deletions

View file

@ -18,6 +18,7 @@
, distribution , distribution
, KeycloakService , KeycloakService
, KeycloakCliService , KeycloakCliService
, HaproxyService
, debug ? true , debug ? true
}: }:
@ -31,6 +32,7 @@ rec {
pkg = pkg =
{ KeycloakService { KeycloakService
, KeycloakCliService , KeycloakCliService
, HaproxyService
}: }:
let let
formatted_allowed_roles = builtins.toJSON (concatStringsSep ", " allowed_roles); formatted_allowed_roles = builtins.toJSON (concatStringsSep ", " allowed_roles);
@ -149,7 +151,7 @@ rec {
}; };
dependsOn = { dependsOn = {
inherit KeycloakService KeycloakCliService; inherit HaproxyService KeycloakService KeycloakCliService;
}; };
type = "systemd-unit"; type = "systemd-unit";
} }

View file

@ -26,6 +26,7 @@
, distribution ? {} , distribution ? {}
, KeycloakService ? null , KeycloakService ? null
, KeycloakCliService ? null , KeycloakCliService ? null
, HaproxyService ? null
}: }:
let let
mkVaultwardenWeb = pkgs.callPackage ./web.nix {inherit utils;}; mkVaultwardenWeb = pkgs.callPackage ./web.nix {inherit utils;};
@ -194,7 +195,7 @@ rec {
clientSecret = "${serviceName}_oauth2proxy_clientsecret"; clientSecret = "${serviceName}_oauth2proxy_clientsecret";
}; };
inherit distribution KeycloakService KeycloakCliService; inherit distribution HaproxyService KeycloakService KeycloakCliService;
}; };
keycloakCliConfig = { keycloakCliConfig = {