3
0
Fork 0
forked from mirrors/nixpkgs

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