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
|
deviceName: {config, ...}: let
|
||||||
inherit (config.vars) mainUser hostName;
|
inherit (config.vars) mainUser hostName;
|
||||||
|
|
||||||
clusterIP = config.services.pacemaker.virtualIps.caddy-vip.ip;
|
clusterIP = config.services.pcsd.virtualIps.caddy-vip.ip;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
@ -10,7 +10,7 @@ in {
|
||||||
../../modules/sshd.nix
|
../../modules/sshd.nix
|
||||||
../../modules/tailscale.nix
|
../../modules/tailscale.nix
|
||||||
|
|
||||||
./modules/pacemaker.nix
|
./modules/pcsd.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
vars = {
|
vars = {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
caddy = caddy-plugins.packages.${pkgs.system}.default;
|
caddy = caddy-plugins.packages.${pkgs.system}.default;
|
||||||
|
|
||||||
clusterIP = config.services.pacemaker.virtualIps.caddy-vip.ip;
|
clusterIP = config.services.pcsd.virtualIps.caddy-vip.ip;
|
||||||
in {
|
in {
|
||||||
imports = [caddy-plugins.nixosModules.default];
|
imports = [caddy-plugins.nixosModules.default];
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
inherit (config.vars) mainUser hostName;
|
inherit (config.vars) mainUser hostName;
|
||||||
headscale-flake = headscale.packages.${pkgs.system}.headscale;
|
headscale-flake = headscale.packages.${pkgs.system}.headscale;
|
||||||
|
|
||||||
clusterIP = config.services.pacemaker.virtualIps.caddy-vip.ip;
|
clusterIP = config.services.pcsd.virtualIps.caddy-vip.ip;
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = [headscale-flake];
|
environment.systemPackages = [headscale-flake];
|
||||||
users.users.${mainUser}.extraGroups = ["headscale"];
|
users.users.${mainUser}.extraGroups = ["headscale"];
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pacemaker,
|
pcsd,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.sops) secrets;
|
inherit (config.sops) secrets;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
pacemaker.nixosModules.default
|
pcsd.nixosModules.default
|
||||||
|
|
||||||
./blocky.nix
|
./blocky.nix
|
||||||
./caddy.nix
|
./caddy.nix
|
||||||
|
@ -15,7 +15,7 @@ in {
|
||||||
./unbound.nix
|
./unbound.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.pacemaker = {
|
services.pcsd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
clusterName = "thingies";
|
clusterName = "thingies";
|
||||||
|
|
||||||
|
@ -58,14 +58,18 @@ in {
|
||||||
|
|
||||||
nodes = [
|
nodes = [
|
||||||
{
|
{
|
||||||
nodeid = 1;
|
|
||||||
name = "thingone";
|
name = "thingone";
|
||||||
ring_addrs = ["10.0.0.244"];
|
nodeid = "1";
|
||||||
|
addrs = [
|
||||||
|
{addr = "10.0.0.244";}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
nodeid = 2;
|
|
||||||
name = "thingtwo";
|
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