Author: eelco
Date: Sun Sep 11 15:55:43 2011
New Revision: 29185
URL: https://ssl.nixos.org/websvn/nix/?rev=29185&sc=1

Log:
* Zabbix: only enable PostgreSQL if it's on the same machine.

Modified:
   nixos/trunk/modules/services/monitoring/zabbix-server.nix

Modified: nixos/trunk/modules/services/monitoring/zabbix-server.nix
==============================================================================
--- nixos/trunk/modules/services/monitoring/zabbix-server.nix   Sun Sep 11 
15:54:18 2011        (r29184)
+++ nixos/trunk/modules/services/monitoring/zabbix-server.nix   Sun Sep 11 
15:55:43 2011        (r29185)
@@ -63,7 +63,7 @@
 
   config = mkIf cfg.enable {
 
-    services.postgresql.enable = true;
+    services.postgresql.enable = cfg.dbServer == "localhost";
 
     users.extraUsers = singleton
       { name = "zabbix";
_______________________________________________
nix-commits mailing list
nix-comm...@cs.uu.nl
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to