Merge pull request #24182 from ndowens/munin
munin: 2.0.30 -> 2.0.33; for CVE-2017-6188
This commit is contained in:
commit
b2ba188656
@ -193,14 +193,26 @@ in
|
|||||||
|
|
||||||
}) (mkIf cronCfg.enable {
|
}) (mkIf cronCfg.enable {
|
||||||
|
|
||||||
services.cron.systemCronJobs = [
|
systemd.timers.munin-cron = {
|
||||||
"*/5 * * * * munin ${pkgs.munin}/bin/munin-cron --config ${muninConf}"
|
description = "batch Munin master programs";
|
||||||
];
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig.OnCalendar = "*:0/5";
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.munin-cron = {
|
||||||
|
description = "batch Munin master programs";
|
||||||
|
unitConfig.Documentation = "man:munin-cron(8)";
|
||||||
|
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
User = "munin";
|
||||||
|
ExecStart = "${pkgs.munin}/bin/munin-cron --config ${muninConf}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
system.activationScripts.munin-cron = stringAfter [ "users" "groups" ] ''
|
system.activationScripts.munin-cron = stringAfter [ "users" "groups" ] ''
|
||||||
mkdir -p /var/{run,log,www,lib}/munin
|
mkdir -p /var/{run,log,www,lib}/munin
|
||||||
chown -R munin:munin /var/{run,log,www,lib}/munin
|
chown -R munin:munin /var/{run,log,www,lib}/munin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
})];
|
})];
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,7 @@ import ./make-test.nix ({ pkgs, ...} : {
|
|||||||
startAll;
|
startAll;
|
||||||
|
|
||||||
$one->waitForUnit("munin-node.service");
|
$one->waitForUnit("munin-node.service");
|
||||||
|
$one->succeed('systemctl start munin-cron');
|
||||||
$one->waitForFile("/var/lib/munin/one/one-uptime-uptime-g.rrd");
|
$one->waitForFile("/var/lib/munin/one/one-uptime-uptime-g.rrd");
|
||||||
$one->waitForFile("/var/www/munin/one/index.html");
|
$one->waitForFile("/var/www/munin/one/index.html");
|
||||||
'';
|
'';
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "2.0.30";
|
version = "2.0.33";
|
||||||
name = "munin-${version}";
|
name = "munin-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "munin-monitoring";
|
owner = "munin-monitoring";
|
||||||
repo = "munin";
|
repo = "munin";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1sxsdfq9a5d8b13jigr06gs7n4m3c95645sfyyl49bkfy0n5cxrg";
|
sha256 = "0rs05b7926mjd58sdry33i91m1h3v3svl0wg2gmhljl8wqidac5w";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
Loading…
Reference in New Issue
Block a user