chore: update pacemaker config
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
5ceef68fe1
commit
97a8bc6aa4
6 changed files with 15 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
deviceName: {config, ...}: let
|
||||
inherit (config.vars) mainUser hostName;
|
||||
|
||||
clusterIP = config.services.pacemaker.virtualIps.caddy-vip.ip;
|
||||
clusterIP = config.services.pcsd.virtualIps.caddy-vip.ip;
|
||||
in {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
@ -10,7 +10,7 @@ in {
|
|||
../../modules/sshd.nix
|
||||
../../modules/tailscale.nix
|
||||
|
||||
./modules/pacemaker.nix
|
||||
./modules/pcsd.nix
|
||||
];
|
||||
|
||||
vars = {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
caddy = caddy-plugins.packages.${pkgs.system}.default;
|
||||
|
||||
clusterIP = config.services.pacemaker.virtualIps.caddy-vip.ip;
|
||||
clusterIP = config.services.pcsd.virtualIps.caddy-vip.ip;
|
||||
in {
|
||||
imports = [caddy-plugins.nixosModules.default];
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
inherit (config.vars) mainUser hostName;
|
||||
headscale-flake = headscale.packages.${pkgs.system}.headscale;
|
||||
|
||||
clusterIP = config.services.pacemaker.virtualIps.caddy-vip.ip;
|
||||
clusterIP = config.services.pcsd.virtualIps.caddy-vip.ip;
|
||||
in {
|
||||
environment.systemPackages = [headscale-flake];
|
||||
users.users.${mainUser}.extraGroups = ["headscale"];
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
config,
|
||||
pacemaker,
|
||||
pcsd,
|
||||
...
|
||||
}: let
|
||||
inherit (config.sops) secrets;
|
||||
in {
|
||||
imports = [
|
||||
pacemaker.nixosModules.default
|
||||
pcsd.nixosModules.default
|
||||
|
||||
./blocky.nix
|
||||
./caddy.nix
|
||||
|
@ -15,7 +15,7 @@ in {
|
|||
./unbound.nix
|
||||
];
|
||||
|
||||
services.pacemaker = {
|
||||
services.pcsd = {
|
||||
enable = true;
|
||||
clusterName = "thingies";
|
||||
|
||||
|
@ -58,14 +58,18 @@ in {
|
|||
|
||||
nodes = [
|
||||
{
|
||||
nodeid = 1;
|
||||
name = "thingone";
|
||||
ring_addrs = ["10.0.0.244"];
|
||||
nodeid = "1";
|
||||
addrs = [
|
||||
{addr = "10.0.0.244";}
|
||||
];
|
||||
}
|
||||
{
|
||||
nodeid = 2;
|
||||
name = "thingtwo";
|
||||
ring_addrs = ["10.0.0.159"];
|
||||
nodeid = "2";
|
||||
addrs = [
|
||||
{addr = "10.0.0.159";}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
Loading…
Reference in a new issue