9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
18 lines
342 B
Nix
18 lines
342 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "fail2ban";
|
|
|
|
nodes.machine = _: {
|
|
services.fail2ban = {
|
|
enable = true;
|
|
bantime-increment.enable = true;
|
|
};
|
|
|
|
services.openssh.enable = true;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("multi-user.target")
|
|
|
|
machine.wait_for_unit("fail2ban")
|
|
'';
|
|
})
|