From fbdfec43056d5e80aaf72b5db2300e5efc8b5ce7 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Thu, 29 Nov 2018 00:22:10 -0800 Subject: [PATCH] Docs: Add note about oss repositories for deb/rpm (#35973) This commit adds a note about configring the yum/apt repositories for oss only packages. closes #35960 --- docs/reference/setup/install/deb.asciidoc | 30 +++++++++++++++++++++++ docs/reference/setup/install/rpm.asciidoc | 30 +++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/docs/reference/setup/install/deb.asciidoc b/docs/reference/setup/install/deb.asciidoc index 629abe37afe..3bbda0a579c 100644 --- a/docs/reference/setup/install/deb.asciidoc +++ b/docs/reference/setup/install/deb.asciidoc @@ -105,6 +105,36 @@ endif::[] include::skip-set-kernel-parameters.asciidoc[] +ifeval::["{release-state}"=="released"] + +[NOTE] +================================================== + +An alternative package which contains only features that are available under the +Apache 2.0 license is also available. To install it, use the following sources list: + +ifeval::["{release-state}"=="prerelease"] + +["source","sh",subs="attributes,callouts"] +-------------------------------------------------- +echo "deb https://artifacts.elastic.co/packages/oss-{major-version}-prerelease/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-{major-version}.list +-------------------------------------------------- + +endif::[] + +ifeval::["{release-state}"!="prerelease"] + +["source","sh",subs="attributes,callouts"] +-------------------------------------------------- +echo "deb https://artifacts.elastic.co/packages/oss-{major-version}/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-{major-version}.list +-------------------------------------------------- + +endif::[] + +================================================== + +endif::[] + [[install-deb]] ==== Download and install the Debian package manually diff --git a/docs/reference/setup/install/rpm.asciidoc b/docs/reference/setup/install/rpm.asciidoc index a6f106497e9..02e69a35d9c 100644 --- a/docs/reference/setup/install/rpm.asciidoc +++ b/docs/reference/setup/install/rpm.asciidoc @@ -90,6 +90,36 @@ sudo zypper install elasticsearch <3> endif::[] +ifeval::["{release-state}"=="released"] + +[NOTE] +================================================== + +An alternative package which contains only features that are available under the +Apache 2.0 license is also available. To install it, use the following `baseurl` in your `elasticsearch.repo` file: + +ifeval::["{release-state}"=="prerelease"] + +["source","sh",subs="attributes,callouts"] +-------------------------------------------------- +baseurl=https://artifacts.elastic.co/packages/oss-{major-version}-prerelease/yum +-------------------------------------------------- + +endif::[] + +ifeval::["{release-state}"!="prerelease"] + +["source","sh",subs="attributes,callouts"] +-------------------------------------------------- +baseurl=https://artifacts.elastic.co/packages/oss-{major-version}/yum +-------------------------------------------------- + +endif::[] + +================================================== + +endif::[] + [[install-rpm]] ==== Download and install the RPM manually