git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #65418 from mmahut/proxy_server

nixos/zabbixProxy: server is a mandatory parameter

commit1ab91bee656dd35974fc91e2bd0cf26cd985607f authorAaron Andersen <aaron@fosslib.net> dateFri 26 Jul 2019, 18:46 (7 years ago) parent4e811976e76265
1 file changed+8
nixos/modules/services/monitoring/zabbix-proxy.nix+8
nixos/modules/services/monitoring/zabbix-proxy.nix+8
@@ -23,6 +23,7 @@ let
2323 LogType = console
2424 ListenIP = ${cfg.listen.ip}
2525 ListenPort = ${toString cfg.listen.port}
26+ Server = ${cfg.server}
2627 # TODO: set to cfg.database.socket if database type is pgsql?
2728 DBHost = ${optionalString (cfg.database.createLocally != true) cfg.database.host}
2829 ${optionalString (cfg.database.createLocally != true) "DBPort = ${cfg.database.port}"}
@@ -50,6 +51,13 @@ in
5051 services.zabbixProxy = {
5152 enable = mkEnableOption "the Zabbix Proxy";
5253
54+ server = mkOption {
55+ type = types.str;
56+ description = ''
57+ The IP address or hostname of the Zabbix server to connect to.
58+ '';
59+ };
60+
5361 package = mkOption {
5462 type = types.package;
5563 default =