Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elk: 6.2.4 -> 6.3.2 #44038

Merged
merged 1 commit into from
Jul 27, 2018
Merged

elk: 6.2.4 -> 6.3.2 #44038

merged 1 commit into from
Jul 27, 2018

Conversation

basvandijk
Copy link
Member

@basvandijk basvandijk commented Jul 24, 2018

This is WIP. Please don't merge yet!

Motivation for this change

https://www.elastic.co/guide/en/elasticsearch/reference/6.3/release-notes-6.3.0.html

Also the private X-Pack is now opened up and moved into the ELK repositories. See: https://www.elastic.co/products/x-pack/open

Things done
  • The ELK stack is upgraded to 6.3.0.

  • elasticsearch6, logstash6 and kibana6 now come with X-Pack which is
    a suite of additional features. These are however licensed under the unfree
    "Elastic License".

  • Fortunately they also provide OSS versions which are now packaged
    under: elasticsearch6-oss, logstash6-oss and kibana6-oss.
    Note that the naming of the attributes is consistent with upstream.

  • The test nix-build nixos/tests/elk.nix -A ELK-6 will test the OSS
    version by default. You can also run the test on the unfree ELK using:

    NIXPKGS_ALLOW_UNFREE=1 nix-build nixos/tests/elk.nix -A ELK-6 --arg enableUnfree true

    That still fails however. Working on it...

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@GrahamcOfBorg GrahamcOfBorg added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 labels Jul 24, 2018
@basvandijk basvandijk added the 2.status: work-in-progress This PR isn't done label Jul 24, 2018
* The ELK stack is upgraded to 6.3.2.

* `elasticsearch6`, `logstash6` and `kibana6` now come with X-Pack which is
  a suite of additional features. These are however licensed under the unfree
  "Elastic License".

* Fortunately they also provide OSS versions which are now packaged
  under: `elasticsearch6-oss`, `logstash6-oss` and `kibana6-oss`.
  Note that the naming of the attributes is consistent with upstream.

* The test `nix-build nixos/tests/elk.nix -A ELK-6` will test the OSS
  version by default. You can also run the test on the unfree ELK using:
  `NIXPKGS_ALLOW_UNFREE=1 nix-build nixos/tests/elk.nix -A ELK-6 --arg enableUnfree true`
@basvandijk basvandijk changed the title WIP: elk: 6.2.4 -> 6.3.0 WIP: elk: 6.2.4 -> 6.3.2 Jul 27, 2018
@basvandijk
Copy link
Member Author

@GrahamcOfBorg test elk.ELK-6

@basvandijk basvandijk removed the 2.status: work-in-progress This PR isn't done label Jul 27, 2018
@basvandijk basvandijk changed the title WIP: elk: 6.2.4 -> 6.3.2 elk: 6.2.4 -> 6.3.2 Jul 27, 2018
@basvandijk basvandijk merged commit 72f3a5c into NixOS:master Jul 27, 2018
Copy link
Member

@LnL7 LnL7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed elasticsearch/kibana disappeared from hydra in 18.09, I don't think we want that unless there's a good very reason to do so.

@@ -1,17 +1,45 @@
{ stdenv, makeWrapper, fetchurl, elk6Version, nodejs, coreutils, which }:
{ elk6Version
, enableUnfree ? true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would we want pkgs.kibana to be unfree by default? We don't enable allowUnfree by default so this package wouldn't be available.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I chose to follow the upstream naming convention. The default ELK packages have become unfree. OSS versions are now packaged
under: elasticsearch6-oss, logstash6-oss and kibana6-oss.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also see: 3f889f3

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I missed that part, and the changelog entry explains what's going on. I was only lookig at hydra jobs.

@@ -1,14 +1,26 @@
{ stdenv, fetchurl, elk6Version, makeWrapper, jre_headless, utillinux }:
{ elk6Version
, enableUnfree ? true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants