mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-21 23:54:22 +01:00
Permit unsupported envoy version
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
de385c1d60
commit
637dc2877f
|
@ -84,6 +84,13 @@ in
|
|||
type = types.package;
|
||||
default = pkgs.envoy;
|
||||
};
|
||||
|
||||
extraConsulArgs = mkOption {
|
||||
description = mdDoc ''
|
||||
'';
|
||||
type = with types; listOf str;
|
||||
default = [];
|
||||
};
|
||||
};
|
||||
});
|
||||
default = {};
|
||||
|
@ -127,6 +134,7 @@ in
|
|||
startEnvoy = pkgs.writeShellScript "start_envoy_${name}.sh"
|
||||
''
|
||||
exec ${value.consulPackage}/bin/consul connect envoy \
|
||||
${concatStringsSep " " value.extraConsulArgs} \
|
||||
${optionalString (value.type == "normal") ''
|
||||
-sidecar-for ${value.service.id} \
|
||||
''} \
|
||||
|
|
|
@ -106,6 +106,7 @@ in
|
|||
address = "10.64.99.6:19000";
|
||||
adminBind = "127.0.0.1:19100";
|
||||
hotRestart = false;
|
||||
extraConsulArgs = [ "-ignore-envoy-compatibility" ];
|
||||
};
|
||||
|
||||
users.users.klipper = {
|
||||
|
|
|
@ -231,6 +231,8 @@ in
|
|||
|
||||
adminBind = "127.0.0.1:19100";
|
||||
hotRestart = false;
|
||||
consulPackage = inputs'.nixpkgs-hashicorp.legacyPackages.${pkgs.stdenv.system}.consul;
|
||||
extraConsulArgs = [ "-ignore-envoy-compatibility" ];
|
||||
};
|
||||
|
||||
services.telegraf-magic = {
|
||||
|
@ -384,6 +386,8 @@ in
|
|||
address = "10.64.99.2:19000";
|
||||
adminBind = "127.0.0.1:19100";
|
||||
hotRestart = false;
|
||||
consulPackage = inputs'.nixpkgs-hashicorp.legacyPackages.${pkgs.stdenv.system}.consul;
|
||||
extraConsulArgs = [ "-ignore-envoy-compatibility" ];
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
|
@ -467,6 +471,8 @@ in
|
|||
address = "10.64.99.2:19001";
|
||||
adminBind = "127.0.0.1:19101";
|
||||
hotRestart = false;
|
||||
consulPackage = inputs'.nixpkgs-hashicorp.legacyPackages.${pkgs.stdenv.system}.consul;
|
||||
extraConsulArgs = [ "-ignore-envoy-compatibility" ];
|
||||
};
|
||||
|
||||
services.influxdb2 = {
|
||||
|
@ -497,6 +503,7 @@ in
|
|||
address = "10.64.99.2:19002";
|
||||
adminBind = "127.0.0.1:19102";
|
||||
hotRestart = false;
|
||||
extraConsulArgs = [ "-ignore-envoy-compatibility" ];
|
||||
};
|
||||
|
||||
services.telegraf-magic = {
|
||||
|
|
Loading…
Reference in a new issue