lib.host: add consul option

This commit is contained in:
lassulus 2022-11-15 15:48:15 +01:00
parent 25a384254b
commit 1db7318c3f
2 changed files with 15 additions and 0 deletions

View File

@ -10,6 +10,7 @@ in {
}; };
hosts = mapAttrs (_: recursiveUpdate { hosts = mapAttrs (_: recursiveUpdate {
owner = config.krebs.users.lass; owner = config.krebs.users.lass;
consul = true;
ci = true; ci = true;
monitoring = true; monitoring = true;
}) { }) {
@ -412,6 +413,7 @@ in {
}; };
xerxes = { xerxes = {
cores = 2; cores = 2;
consul = false;
nets = rec { nets = rec {
retiolum = { retiolum = {
ip4.addr = "10.243.1.3"; ip4.addr = "10.243.1.3";
@ -632,6 +634,7 @@ in {
}; };
phone = { phone = {
consul = false;
nets = { nets = {
wiregrill = { wiregrill = {
ip4.addr = "10.244.1.13"; ip4.addr = "10.244.1.13";
@ -647,6 +650,7 @@ in {
syncthing.id = "PWKVXPB-JCNO6E4-KVIQ7CK-6FSOWHM-AWORMDU-HVVYLKW-44DQTYW-XZT7DQJ"; syncthing.id = "PWKVXPB-JCNO6E4-KVIQ7CK-6FSOWHM-AWORMDU-HVVYLKW-44DQTYW-XZT7DQJ";
}; };
tablet = { tablet = {
consul = false;
nets = { nets = {
wiregrill = { wiregrill = {
ip4.addr = "10.244.1.14"; ip4.addr = "10.244.1.14";
@ -661,6 +665,7 @@ in {
ci = false; ci = false;
}; };
hilum = { hilum = {
consul = false;
cores = 1; cores = 1;
nets = { nets = {
retiolum = { retiolum = {
@ -836,6 +841,7 @@ in {
}; };
lasspi = { lasspi = {
consul = false;
cores = 1; cores = 1;
nets = { nets = {
retiolum = { retiolum = {
@ -879,6 +885,7 @@ in {
}; };
domsen-pixel = { domsen-pixel = {
consul = false;
nets = { nets = {
wiregrill = { wiregrill = {
ip4.addr = "10.244.1.17"; ip4.addr = "10.244.1.17";

View File

@ -58,6 +58,14 @@ rec {
default = false; default = false;
}; };
consul = mkOption {
description = ''
Whether the host is a member of the global consul network
'';
type = bool;
default = false;
};
owner = mkOption { owner = mkOption {
type = user; type = user;
}; };