module zabbixProxy: server is a mandatory parameter
This commit is contained in:
parent
2a227c6cd8
commit
6e762653de
@ -23,6 +23,7 @@ let
|
|||||||
LogType = console
|
LogType = console
|
||||||
ListenIP = ${cfg.listen.ip}
|
ListenIP = ${cfg.listen.ip}
|
||||||
ListenPort = ${toString cfg.listen.port}
|
ListenPort = ${toString cfg.listen.port}
|
||||||
|
Server = ${cfg.server}
|
||||||
# TODO: set to cfg.database.socket if database type is pgsql?
|
# TODO: set to cfg.database.socket if database type is pgsql?
|
||||||
DBHost = ${optionalString (cfg.database.createLocally != true) cfg.database.host}
|
DBHost = ${optionalString (cfg.database.createLocally != true) cfg.database.host}
|
||||||
${optionalString (cfg.database.createLocally != true) "DBPort = ${cfg.database.port}"}
|
${optionalString (cfg.database.createLocally != true) "DBPort = ${cfg.database.port}"}
|
||||||
@ -50,6 +51,13 @@ in
|
|||||||
services.zabbixProxy = {
|
services.zabbixProxy = {
|
||||||
enable = mkEnableOption "the Zabbix Proxy";
|
enable = mkEnableOption "the Zabbix Proxy";
|
||||||
|
|
||||||
|
server = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description = ''
|
||||||
|
The IP address or hostname of the Zabbix server to connect to.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default =
|
default =
|
||||||
|
Loading…
Reference in New Issue
Block a user