nixos/tests/keepalived: use openFirewall option
Instead of networking.firewall.extraCommands.
This commit is contained in:
parent
4522b0bd7a
commit
1f82020865
@ -4,8 +4,8 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
|||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
node1 = { pkgs, ... }: {
|
node1 = { pkgs, ... }: {
|
||||||
networking.firewall.extraCommands = "iptables -A INPUT -p vrrp -j ACCEPT";
|
|
||||||
services.keepalived.enable = true;
|
services.keepalived.enable = true;
|
||||||
|
services.keepalived.openFirewall = true;
|
||||||
services.keepalived.vrrpInstances.test = {
|
services.keepalived.vrrpInstances.test = {
|
||||||
interface = "eth1";
|
interface = "eth1";
|
||||||
state = "MASTER";
|
state = "MASTER";
|
||||||
@ -16,8 +16,8 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
|||||||
environment.systemPackages = [ pkgs.tcpdump ];
|
environment.systemPackages = [ pkgs.tcpdump ];
|
||||||
};
|
};
|
||||||
node2 = { pkgs, ... }: {
|
node2 = { pkgs, ... }: {
|
||||||
networking.firewall.extraCommands = "iptables -A INPUT -p vrrp -j ACCEPT";
|
|
||||||
services.keepalived.enable = true;
|
services.keepalived.enable = true;
|
||||||
|
services.keepalived.openFirewall = true;
|
||||||
services.keepalived.vrrpInstances.test = {
|
services.keepalived.vrrpInstances.test = {
|
||||||
interface = "eth1";
|
interface = "eth1";
|
||||||
state = "MASTER";
|
state = "MASTER";
|
||||||
|
Loading…
Reference in New Issue
Block a user