nixos-configs/devices/cluster/modules/corosync.nix
matt1432 c3df63c479
All checks were successful
Discord / discord commits (push) Successful in 29s
feat(servers): setup corosync
2024-01-21 22:11:38 -05:00

23 lines
417 B
Nix

{config, ...}: {
environment.etc."corosync/authkey" = {
source = config.sops.secrets.corosync.path;
};
services.corosync = {
enable = true;
clusterName = "thingies";
nodelist = [
{
nodeid = 1;
name = "thingone";
ring_addrs = ["10.0.0.244"];
}
{
nodeid = 2;
name = "thingtwo";
ring_addrs = ["10.0.0.159"];
}
];
};
}