blade-{paris,tuvok}: split IPv4/IPv6 VRRP
This commit is contained in:
parent
0d46b6d4fe
commit
b0198cfa3d
2 changed files with 24 additions and 8 deletions
|
@ -83,18 +83,26 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
services.keepalived = {
|
||||
enable = true;
|
||||
vrrpInstances.mgmtGateway = {
|
||||
services.keepalived = let
|
||||
mgmtBase = {
|
||||
interface = "br-mgmt";
|
||||
state = "MASTER";
|
||||
priority = 100;
|
||||
};
|
||||
in {
|
||||
enable = true;
|
||||
vrrpInstances.mgmtGateway = mgmtBase // {
|
||||
virtualIps = [
|
||||
{ addr = "10.100.0.1/23"; }
|
||||
{ addr = "92.118.28.1/24"; dev = "br-public"; }
|
||||
{ addr = "2a09:a441::/48"; dev = "br-public"; }
|
||||
];
|
||||
virtualRouterId = 1;
|
||||
};
|
||||
vrrpInstances.mgmtGateway6 = mgmtBase // {
|
||||
virtualIps = [
|
||||
{ addr = "2a09:a441::/48"; dev = "br-public"; }
|
||||
];
|
||||
virtualRouterId = 2;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -118,18 +118,26 @@ in {
|
|||
"0.0.0.0" "[::]"
|
||||
];
|
||||
|
||||
services.keepalived = {
|
||||
enable = true;
|
||||
vrrpInstances.mgmtGateway = {
|
||||
services.keepalived = let
|
||||
mgmtBase = {
|
||||
interface = "br-mgmt";
|
||||
state = "MASTER";
|
||||
priority = 50;
|
||||
};
|
||||
in {
|
||||
enable = true;
|
||||
vrrpInstances.mgmtGateway = mgmtBase // {
|
||||
virtualIps = [
|
||||
{ addr = "10.100.0.1/23"; }
|
||||
{ addr = "92.118.28.1/24"; dev = "br-public"; }
|
||||
{ addr = "2a09:a441::/48"; dev = "br-public"; }
|
||||
];
|
||||
virtualRouterId = 1;
|
||||
};
|
||||
vrrpInstances.mgmtGateway6 = mgmtBase // {
|
||||
virtualIps = [
|
||||
{ addr = "2a09:a441::/48"; dev = "br-public"; }
|
||||
];
|
||||
virtualRouterId = 2;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue