Merge pull request #116936 from hercules-ci/logstash-jdk
This commit is contained in:
commit
7d0dad76ef
@ -159,10 +159,9 @@ in
|
|||||||
###### implementation
|
###### implementation
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
systemd.services.logstash = with pkgs; {
|
systemd.services.logstash = {
|
||||||
description = "Logstash Daemon";
|
description = "Logstash Daemon";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
environment = { JAVA_HOME = jre; };
|
|
||||||
path = [ pkgs.bash ];
|
path = [ pkgs.bash ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStartPre = ''${pkgs.coreutils}/bin/mkdir -p "${cfg.dataDir}" ; ${pkgs.coreutils}/bin/chmod 700 "${cfg.dataDir}"'';
|
ExecStartPre = ''${pkgs.coreutils}/bin/mkdir -p "${cfg.dataDir}" ; ${pkgs.coreutils}/bin/chmod 700 "${cfg.dataDir}"'';
|
||||||
|
@ -120,6 +120,7 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
passthru.elkPackages = elk;
|
||||||
testScript = ''
|
testScript = ''
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
@ -3,12 +3,13 @@
|
|||||||
, lib, stdenv
|
, lib, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
, nixosTests
|
||||||
, jre
|
, jre
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let this = stdenv.mkDerivation rec {
|
||||||
version = elk6Version;
|
version = elk6Version;
|
||||||
name = "logstash-${optionalString (!enableUnfree) "oss-"}${version}";
|
name = "logstash-${optionalString (!enableUnfree) "oss-"}${version}";
|
||||||
|
|
||||||
@ -52,4 +53,12 @@ stdenv.mkDerivation rec {
|
|||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ wjlroe offline basvandijk ];
|
maintainers = with maintainers; [ wjlroe offline basvandijk ];
|
||||||
};
|
};
|
||||||
|
passthru.tests =
|
||||||
|
optionalAttrs (!enableUnfree) (
|
||||||
|
assert this.drvPath == nixosTests.elk.ELK-6.elkPackages.logstash.drvPath;
|
||||||
|
{
|
||||||
|
elk = nixosTests.elk.ELK-6;
|
||||||
}
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
|
in this
|
||||||
|
@ -3,12 +3,13 @@
|
|||||||
, lib, stdenv
|
, lib, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
, nixosTests
|
||||||
, jre
|
, jre
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let this = stdenv.mkDerivation rec {
|
||||||
version = elk7Version;
|
version = elk7Version;
|
||||||
name = "logstash-${optionalString (!enableUnfree) "oss-"}${version}";
|
name = "logstash-${optionalString (!enableUnfree) "oss-"}${version}";
|
||||||
|
|
||||||
@ -52,4 +53,12 @@ stdenv.mkDerivation rec {
|
|||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ wjlroe offline basvandijk ];
|
maintainers = with maintainers; [ wjlroe offline basvandijk ];
|
||||||
};
|
};
|
||||||
|
passthru.tests =
|
||||||
|
optionalAttrs (!enableUnfree) (
|
||||||
|
assert this.drvPath == nixosTests.elk.ELK-7.elkPackages.logstash.drvPath;
|
||||||
|
{
|
||||||
|
elk = nixosTests.elk.ELK-7;
|
||||||
}
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
|
in this
|
||||||
|
@ -5849,13 +5849,23 @@ in
|
|||||||
|
|
||||||
lockfileProgs = callPackage ../tools/misc/lockfile-progs { };
|
lockfileProgs = callPackage ../tools/misc/lockfile-progs { };
|
||||||
|
|
||||||
logstash6 = callPackage ../tools/misc/logstash/6.x.nix { };
|
logstash6 = callPackage ../tools/misc/logstash/6.x.nix {
|
||||||
|
# https://www.elastic.co/support/matrix#logstash-and-jvm
|
||||||
|
jre = jdk11_headless;
|
||||||
|
};
|
||||||
logstash6-oss = callPackage ../tools/misc/logstash/6.x.nix {
|
logstash6-oss = callPackage ../tools/misc/logstash/6.x.nix {
|
||||||
enableUnfree = false;
|
enableUnfree = false;
|
||||||
|
# https://www.elastic.co/support/matrix#logstash-and-jvm
|
||||||
|
jre = jdk11_headless;
|
||||||
|
};
|
||||||
|
logstash7 = callPackage ../tools/misc/logstash/7.x.nix {
|
||||||
|
# https://www.elastic.co/support/matrix#logstash-and-jvm
|
||||||
|
jre = jdk11_headless;
|
||||||
};
|
};
|
||||||
logstash7 = callPackage ../tools/misc/logstash/7.x.nix { };
|
|
||||||
logstash7-oss = callPackage ../tools/misc/logstash/7.x.nix {
|
logstash7-oss = callPackage ../tools/misc/logstash/7.x.nix {
|
||||||
enableUnfree = false;
|
enableUnfree = false;
|
||||||
|
# https://www.elastic.co/support/matrix#logstash-and-jvm
|
||||||
|
jre = jdk11_headless;
|
||||||
};
|
};
|
||||||
logstash = logstash6;
|
logstash = logstash6;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user