mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
nixosTests.kea: use knot.settings for configuration
This commit is contained in:
parent
8e93f353cc
commit
45e71a7a99
|
@ -134,31 +134,32 @@ import ./make-test-python.nix ({ pkgs, lib, ...}: {
|
||||||
extraArgs = [
|
extraArgs = [
|
||||||
"-v"
|
"-v"
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
settings = {
|
||||||
server:
|
server.listen = [
|
||||||
listen: 0.0.0.0@53
|
"0.0.0.0@53"
|
||||||
|
];
|
||||||
|
|
||||||
log:
|
log.syslog.any = "info";
|
||||||
- target: syslog
|
|
||||||
any: debug
|
|
||||||
|
|
||||||
acl:
|
acl.dhcp_ddns = {
|
||||||
- id: dhcp_ddns
|
address = "10.0.0.1";
|
||||||
address: 10.0.0.1
|
action = "update";
|
||||||
action: update
|
};
|
||||||
|
|
||||||
template:
|
template.default = {
|
||||||
- id: default
|
storage = zonesDir;
|
||||||
storage: ${zonesDir}
|
zonefile-sync = "-1";
|
||||||
zonefile-sync: -1
|
zonefile-load = "difference-no-serial";
|
||||||
zonefile-load: difference-no-serial
|
journal-content = "all";
|
||||||
journal-content: all
|
};
|
||||||
|
|
||||||
zone:
|
zone."lan.nixos.test" = {
|
||||||
- domain: lan.nixos.test
|
file = "lan.nixos.test.zone";
|
||||||
file: lan.nixos.test.zone
|
acl = [
|
||||||
acl: [dhcp_ddns]
|
"dhcp_ddns"
|
||||||
'';
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue