add keepalived conf?

This commit is contained in:
ArgentumCation 2024-08-16 16:35:21 -04:00
parent 6dc98e4ba3
commit 99a69bf1e9

View file

@ -91,7 +91,36 @@
liveRestore = false; # NOTE: Incompatible with swarm liveRestore = false; # NOTE: Incompatible with swarm
}; };
# List services that you want to enable: # List services that you want to enable:
services.keepalived = {
enable = true;
openFirewall = true;
extraConfig = ''
vrrp_track_process track_traefik {
process traefik
weight 20
delay 1
}
'';
vrrpInstances = {
VI_1 = {
state = "BACKUP";
interface = "enp0s31f6";
virtualRouterId = 51;
priority=100;
virtualIps = [ {addr = "192.168.1.64";}];
extraConfig = ''
authentication {
auth_type PASS
auth_pass 3141
}
track_process {
track_traefik
}
advert_int 1
'';
};
};
};
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
# services.openssh.enable = true; # services.openssh.enable = true;