Skip to content

Commit

Permalink
try more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Jan 23, 2024
1 parent 6569652 commit dd31c29
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/kolide-launcher.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,19 @@ pkgs.nixosTest {

system.stateVersion = "23.11";

virtualisation.vlans = [ 1 ];
networking.dhcpcd.enable = false;
networking.useDHCP = false;
networking.interfaces.eth1.ipv4.addresses = [ { address = "192.168.0.1"; prefixLength = 24; } ];
networking.extraHosts = "192.168.0.2 app.kolide.test";
networking.interfaces.eth1.ipv4.addresses = [ { address = "192.168.1.1"; prefixLength = 24; } ];
networking.extraHosts = "192.168.1.2 app.kolide.test";
};

k2server = { config, pkgs, ... }: {
virtualisation.vlans = [ 1 ];
networking.firewall.allowedTCPPorts = [ 80 ];
networking.dhcpcd.enable = false;
networking.useDHCP = false;
networking.interfaces.eth1.ipv4.addresses = [ { address = "192.168.0.2"; prefixLength = 24; } ];
networking.interfaces.eth1.ipv4.addresses = [ { address = "192.168.1.2"; prefixLength = 24; } ];
networking.extraHosts = "127.0.0.1 app.kolide.test";

systemd.services.mock-k2-server = {
Expand Down

0 comments on commit dd31c29

Please sign in to comment.