2015-07-12 10:09:40 +00:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
2014-12-11 22:32:37 +00:00
|
|
|
name = "simple";
|
2015-07-12 10:09:40 +00:00
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ offline ];
|
|
|
|
};
|
2014-12-11 22:32:37 +00:00
|
|
|
|
|
|
|
machine = { config, pkgs, ... }: {
|
|
|
|
services.zookeeper.enable = true;
|
2014-12-11 22:35:31 +00:00
|
|
|
virtualisation.docker.enable = true;
|
2014-12-11 22:32:37 +00:00
|
|
|
services.mesos = {
|
|
|
|
slave = {
|
|
|
|
enable = true;
|
|
|
|
master = "zk://localhost:2181/mesos";
|
2014-12-17 22:46:01 +00:00
|
|
|
attributes = {
|
|
|
|
tag1 = "foo";
|
|
|
|
tag2 = "bar";
|
|
|
|
};
|
2014-12-11 22:32:37 +00:00
|
|
|
};
|
|
|
|
master = {
|
|
|
|
enable = true;
|
|
|
|
zk = "zk://localhost:2181/mesos";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
startAll;
|
|
|
|
$machine->waitForUnit("mesos-master.service");
|
|
|
|
$machine->waitForUnit("mesos-slave.service");
|
|
|
|
'';
|
2015-07-12 10:09:40 +00:00
|
|
|
})
|