add keepalived conf?
This commit is contained in:
parent
6dc98e4ba3
commit
99a69bf1e9
1 changed files with 73 additions and 44 deletions
|
@ -91,7 +91,36 @@
|
|||
liveRestore = false; # NOTE: Incompatible with swarm
|
||||
};
|
||||
# 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.
|
||||
# services.openssh.enable = true;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue