Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
23 lines
451 B
Nix
23 lines
451 B
Nix
import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
|
name = "snmpd";
|
|
|
|
nodes.snmpd = {
|
|
environment.systemPackages = with pkgs; [
|
|
net-snmp
|
|
];
|
|
|
|
services.snmpd = {
|
|
enable = true;
|
|
configText = ''
|
|
rocommunity public
|
|
'';
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all();
|
|
machine.wait_for_unit("snmpd.service")
|
|
machine.succeed("snmpwalk -v 2c -c public localhost | grep SNMPv2-MIB::sysName.0");
|
|
'';
|
|
|
|
})
|