chore: update pacemaker config
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-02-01 11:48:38 -05:00
parent 5ceef68fe1
commit 97a8bc6aa4
6 changed files with 15 additions and 11 deletions

View file

@ -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 = {

View file

@ -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];

View file

@ -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"];

View file

@ -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";}
];
}
];
};

Binary file not shown.

BIN
flake.nix

Binary file not shown.