diff options
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/cassandra.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/tests/cassandra.nix b/nixos/tests/cassandra.nix index 6779a0172dbd..eab757b80a54 100644 --- a/nixos/tests/cassandra.nix +++ b/nixos/tests/cassandra.nix @@ -14,7 +14,13 @@ let }; nodeCfg = ipAddress: extra: {pkgs, config, ...}: { environment.systemPackages = [ testPackage ]; - networking.firewall.enable = false; + networking = { + firewall.allowedTCPPorts = [ 7000 7199 9042 ]; + useDHCP = false; + interfaces.eth1.ipv4.addresses = pkgs.lib.mkOverride 0 [ + { address = ipAddress; prefixLength = 24; } + ]; + }; services.cassandra = cassandraCfg ipAddress // extra; virtualisation.memorySize = 1024; }; |