mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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 = {
|
||||
node1 = { pkgs, ... }: {
|
||||
networking.firewall.extraCommands = "iptables -A INPUT -p vrrp -j ACCEPT";
|
||||
services.keepalived.enable = true;
|
||||
services.keepalived.openFirewall = true;
|
||||
services.keepalived.vrrpInstances.test = {
|
||||
interface = "eth1";
|
||||
state = "MASTER";
|
||||
@ -16,8 +16,8 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
||||
environment.systemPackages = [ pkgs.tcpdump ];
|
||||
};
|
||||
node2 = { pkgs, ... }: {
|
||||
networking.firewall.extraCommands = "iptables -A INPUT -p vrrp -j ACCEPT";
|
||||
services.keepalived.enable = true;
|
||||
services.keepalived.openFirewall = true;
|
||||
services.keepalived.vrrpInstances.test = {
|
||||
interface = "eth1";
|
||||
state = "MASTER";
|
||||
|
Loading…
Reference in New Issue
Block a user