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