modules/systemd-extras: distributed: support registering multiple services
This commit is contained in:
parent
f55a60d0bb
commit
94d678b93b
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,11 @@ with lib;
|
||||||
type = with types; nullOr str;
|
type = with types; nullOr str;
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
registerServices = mkOption {
|
||||||
|
description = "Consul services to register when this service gets started.";
|
||||||
|
type = with types; listOf str;
|
||||||
|
default = if config.distributed.registerService == null then [ ] else [ config.distributed.registerService ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue