nixos/modules/services/monitoring/graphite.nix: strip trailing whitespace

This commit is contained in:
Peter Simons 2014-11-02 12:40:00 +01:00
parent 96a7e65c37
commit 415f41bf68

View File

@ -306,7 +306,7 @@ in {
example = literalExample '' example = literalExample ''
{ {
GRAPHITE_USERNAME = "user"; GRAPHITE_USERNAME = "user";
GRAPHITE_PASSWORD = "pass"; GRAPHITE_PASSWORD = "pass";
} }
''; '';
}; };
@ -344,7 +344,7 @@ in {
name: Test name: Test
''; '';
example = literalExample '' example = literalExample ''
pushbullet_key: pushbullet_api_key pushbullet_key: pushbullet_api_key
alerts: alerts:
- target: stats.seatgeek.app.deal_quality.venue_info_cache.hit - target: stats.seatgeek.app.deal_quality.venue_info_cache.hit
warning: .5 warning: .5
@ -456,7 +456,7 @@ in {
environment.systemPackages = [ pkgs.python27Packages.graphite_web ]; environment.systemPackages = [ pkgs.python27Packages.graphite_web ];
}) })
(mkIf cfg.api.enable { (mkIf cfg.api.enable {
systemd.services.graphiteApi = { systemd.services.graphiteApi = {
description = "Graphite Api Interface"; description = "Graphite Api Interface";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
@ -472,7 +472,7 @@ in {
ExecStart = '' ExecStart = ''
${pkgs.python27Packages.waitress}/bin/waitress-serve \ ${pkgs.python27Packages.waitress}/bin/waitress-serve \
--host=${cfg.api.host} --port=${toString cfg.api.port} \ --host=${cfg.api.host} --port=${toString cfg.api.port} \
graphite_api.app:app graphite_api.app:app
''; '';
User = "graphite"; User = "graphite";
Group = "graphite"; Group = "graphite";
@ -501,7 +501,7 @@ in {
ExecStart = "${pkgs.seyren}/bin/seyren -httpPort ${toString cfg.seyren.port}"; ExecStart = "${pkgs.seyren}/bin/seyren -httpPort ${toString cfg.seyren.port}";
WorkingDirectory = dataDir; WorkingDirectory = dataDir;
User = "graphite"; User = "graphite";
Group = "graphite"; Group = "graphite";
}; };
preStart = '' preStart = ''
if ! test -e ${dataDir}/db-created; then if ! test -e ${dataDir}/db-created; then
@ -526,7 +526,7 @@ in {
serviceConfig = { serviceConfig = {
ExecStart = "${pkgs.pythonPackages.graphite_pager}/bin/graphite-pager --config ${pagerConfig}"; ExecStart = "${pkgs.pythonPackages.graphite_pager}/bin/graphite-pager --config ${pagerConfig}";
User = "graphite"; User = "graphite";
Group = "graphite"; Group = "graphite";
}; };
}; };