mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
26 lines
535 B
Nix
26 lines
535 B
Nix
import ./make-test.nix {
|
|
name = "simple";
|
|
|
|
machine = { config, pkgs, ... }: {
|
|
services.zookeeper.enable = true;
|
|
virtualisation.docker.enable = true;
|
|
services.mesos = {
|
|
slave = {
|
|
enable = true;
|
|
master = "zk://localhost:2181/mesos";
|
|
};
|
|
master = {
|
|
enable = true;
|
|
zk = "zk://localhost:2181/mesos";
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
startAll;
|
|
$machine->waitForUnit("mesos-master.service");
|
|
$machine->waitForUnit("mesos-slave.service");
|
|
'';
|
|
}
|