summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/graphite.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2016-01-05 12:54:15 +0100
committerPeter Simons <simons@cryp.to>2016-01-05 12:54:15 +0100
commitd807b057eddc45093566b0b515b03a4217c165fa (patch)
tree9c0e6865e8061d2c34faca45d85e904fbb2984ae /nixos/modules/services/monitoring/graphite.nix
parentf4b2c3d51001aeef107bf33ba065d322e2c243c5 (diff)
parentc7c3c95d92832b5a13524897e7b5583c98201a1e (diff)
downloadnixpkgs-d807b057eddc45093566b0b515b03a4217c165fa.tar
nixpkgs-d807b057eddc45093566b0b515b03a4217c165fa.tar.gz
nixpkgs-d807b057eddc45093566b0b515b03a4217c165fa.tar.bz2
nixpkgs-d807b057eddc45093566b0b515b03a4217c165fa.tar.lz
nixpkgs-d807b057eddc45093566b0b515b03a4217c165fa.tar.xz
nixpkgs-d807b057eddc45093566b0b515b03a4217c165fa.tar.zst
nixpkgs-d807b057eddc45093566b0b515b03a4217c165fa.zip
Merge pull request #11920 from bjornfor/rename-host-to-listen-address
Rename NixOS option names: 'host' to 'listenAddress'
Diffstat (limited to 'nixos/modules/services/monitoring/graphite.nix')
-rw-r--r--nixos/modules/services/monitoring/graphite.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/services/monitoring/graphite.nix b/nixos/modules/services/monitoring/graphite.nix
index ce8e572cc99..731e5fae9e9 100644
--- a/nixos/modules/services/monitoring/graphite.nix
+++ b/nixos/modules/services/monitoring/graphite.nix
@@ -77,7 +77,7 @@ in {
         type = types.bool;
       };
 
-      host = mkOption {
+      listenAddress = mkOption {
         description = "Graphite web frontend listen address.";
         default = "127.0.0.1";
         type = types.str;
@@ -121,7 +121,7 @@ in {
         type = types.listOf types.str;
       };
 
-      host = mkOption {
+      listenAddress = mkOption {
         description = "Graphite web service listen address.";
         default = "127.0.0.1";
         type = types.str;
@@ -292,7 +292,7 @@ in {
       };
 
       graphiteUrl = mkOption {
-        default = "http://${cfg.web.host}:${toString cfg.web.port}";
+        default = "http://${cfg.web.listenAddress}:${toString cfg.web.port}";
         description = "Host where graphite service runs.";
         type = types.str;
       };
@@ -337,7 +337,7 @@ in {
 
       graphiteUrl = mkOption {
         description = "URL to your graphite service.";
-        default = "http://${cfg.web.host}:${toString cfg.web.port}";
+        default = "http://${cfg.web.listenAddress}:${toString cfg.web.port}";
         type = types.str;
       };
 
@@ -452,7 +452,7 @@ in {
         serviceConfig = {
           ExecStart = ''
             ${pkgs.python27Packages.waitress}/bin/waitress-serve \
-            --host=${cfg.web.host} --port=${toString cfg.web.port} \
+            --host=${cfg.web.listenAddress} --port=${toString cfg.web.port} \
             --call django.core.handlers.wsgi:WSGIHandler'';
           User = "graphite";
           Group = "graphite";
@@ -494,7 +494,7 @@ in {
         serviceConfig = {
           ExecStart = ''
             ${pkgs.python27Packages.waitress}/bin/waitress-serve \
-            --host=${cfg.api.host} --port=${toString cfg.api.port} \
+            --host=${cfg.api.listenAddress} --port=${toString cfg.api.port} \
             graphite_api.app:app
           '';
           User = "graphite";