summaryrefslogtreecommitdiffstats
path: root/lass/2configs/consul.nix
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-09-07 12:26:31 +0200
committerlassulus <git@lassul.us>2023-09-07 12:40:43 +0200
commit2e5167de1560ad0d7b8e294c72e1913f694160c2 (patch)
treeb618daa9f125650e9276bae7848f854c48d6c95e /lass/2configs/consul.nix
parent6a3a423dad19264c0c42821c7676e85ecc122d21 (diff)
lass: migrate awayriplass
Diffstat (limited to 'lass/2configs/consul.nix')
-rw-r--r--lass/2configs/consul.nix40
1 files changed, 0 insertions, 40 deletions
diff --git a/lass/2configs/consul.nix b/lass/2configs/consul.nix
deleted file mode 100644
index 67467364..00000000
--- a/lass/2configs/consul.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-{ config, lib, pkgs, ... }:
-{
- services.consul = {
- enable = true;
- # dropPrivileges = false;
- webUi = true;
- # interface.bind = "retiolum";
- extraConfig = {
- bind_addr = config.krebs.build.host.nets.retiolum.ip4.addr;
- bootstrap_expect = 3;
- server = true;
- # retry_join = config.services.consul.extraConfig.start_join;
- retry_join = lib.mapAttrsToList (n: h:
- lib.head h.nets.retiolum.aliases
- ) (lib.filterAttrs (n: h: h.consul) config.krebs.hosts);
- rejoin_after_leave = true;
-
- # try to fix random lock loss on leader reelection
- retry_interval = "3s";
- };
- };
-
- environment.etc."consul.d/testservice.json".text = builtins.toJSON {
- service = {
- name = "testing";
- };
- };
-
- krebs.iptables.tables.filter.INPUT.rules = [
- { predicate = "-i retiolum -p tcp --dport 8300"; target = "ACCEPT"; }
- { predicate = "-i retiolum -p tcp --dport 8301"; target = "ACCEPT"; }
- { predicate = "-i retiolum -p udp --dport 8301"; target = "ACCEPT"; }
- { predicate = "-i retiolum -p tcp --dport 8302"; target = "ACCEPT"; }
- { predicate = "-i retiolum -p udp --dport 8302"; target = "ACCEPT"; }
- { predicate = "-i retiolum -p tcp --dport 8400"; target = "ACCEPT"; }
- { predicate = "-i retiolum -p tcp --dport 8500"; target = "ACCEPT"; }
- { predicate = "-i retiolum -p tcp --dport 8600"; target = "ACCEPT"; }
- { predicate = "-i retiolum -p udp --dport 8500"; target = "ACCEPT"; }
- ];
-}