mesos: fix indentation in service definition

This commit is contained in:
Charles Strahan 2015-05-10 16:38:19 -04:00
parent 9d9e21c7fd
commit 760169663e

View File

@ -40,10 +40,10 @@ in {
extraCmdLineOptions = mkOption { extraCmdLineOptions = mkOption {
description = '' description = ''
Extra command line options for Mesos Master. Extra command line options for Mesos Master.
See https://mesos.apache.org/documentation/latest/configuration/ See https://mesos.apache.org/documentation/latest/configuration/
''; '';
default = [ "" ]; default = [ "" ];
type = types.listOf types.string; type = types.listOf types.string;
example = [ "--credentials=VALUE" ]; example = [ "--credentials=VALUE" ];
@ -82,20 +82,20 @@ in {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
after = [ "network-interfaces.target" ]; after = [ "network-interfaces.target" ];
serviceConfig = { serviceConfig = {
ExecStart = '' ExecStart = ''
${pkgs.mesos}/bin/mesos-master \ ${pkgs.mesos}/bin/mesos-master \
--port=${toString cfg.port} \ --port=${toString cfg.port} \
--zk=${cfg.zk} \ --zk=${cfg.zk} \
${if cfg.quorum == 0 then "--registry=in_memory" else "--registry=replicated_log --quorum=${toString cfg.quorum}"} \ ${if cfg.quorum == 0 then "--registry=in_memory" else "--registry=replicated_log --quorum=${toString cfg.quorum}"} \
--work_dir=${cfg.workDir} \ --work_dir=${cfg.workDir} \
--logging_level=${cfg.logLevel} \ --logging_level=${cfg.logLevel} \
${toString cfg.extraCmdLineOptions} ${toString cfg.extraCmdLineOptions}
''; '';
Restart = "on-failure"; Restart = "on-failure";
PermissionsStartOnly = true; PermissionsStartOnly = true;
}; };
preStart = '' preStart = ''
mkdir -m 0700 -p ${cfg.workDir} mkdir -m 0700 -p ${cfg.workDir}
''; '';
}; };
}; };