From 7b02e91e2901ff1a0e34a47d663998c0485686cb Mon Sep 17 00:00:00 2001 From: Alexander Reelsen Date: Wed, 7 Oct 2015 13:33:21 +0200 Subject: [PATCH] Docs: Update repository docs with new major version structure --- docs/reference/index.asciidoc | 11 ++++++----- docs/reference/setup/repositories.asciidoc | 16 ++++++++-------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/docs/reference/index.asciidoc b/docs/reference/index.asciidoc index 096ff32ee27..8e34747ffdb 100644 --- a/docs/reference/index.asciidoc +++ b/docs/reference/index.asciidoc @@ -1,11 +1,12 @@ [[elasticsearch-reference]] = Elasticsearch Reference -:version: 3.0.0-beta1 -:branch: 3.0 -:jdk: 1.8.0_25 -:defguide: https://www.elastic.co/guide/en/elasticsearch/guide/current -:plugins: https://www.elastic.co/guide/en/elasticsearch/plugins/master +:version: 3.0.0-beta1 +:major-version: 3.x +:branch: 3.0 +:jdk: 1.8.0_25 +:defguide: https://www.elastic.co/guide/en/elasticsearch/guide/current +:plugins: https://www.elastic.co/guide/en/elasticsearch/plugins/master include::getting-started.asciidoc[] diff --git a/docs/reference/setup/repositories.asciidoc b/docs/reference/setup/repositories.asciidoc index 79b8959c249..70b000ec48c 100644 --- a/docs/reference/setup/repositories.asciidoc +++ b/docs/reference/setup/repositories.asciidoc @@ -6,7 +6,7 @@ binary packages, but no source packages, as the packages are created as part of build. We have split the major versions in separate urls to avoid accidental upgrades across major version. -For all 0.90.x releases use 0.90 as version number, for 1.0.x use 1.0, for 1.1.x use 1.1 etc. +For all 2.x releases use 2.x as version number, for 3.x.y use 3.x etc... We use the PGP key https://pgp.mit.edu/pks/lookup?op=vindex&search=0xD27D666CD88E42B4[D88E42B4], Elasticsearch Signing Key, with fingerprint @@ -25,11 +25,11 @@ Download and install the Public Signing Key: wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - -------------------------------------------------- -Save the repository definition to `/etc/apt/sources.list.d/elasticsearch-{branch}.list`: +Save the repository definition to +/etc/apt/sources.list.d/elasticsearch-{major-version}.list+: ["source","sh",subs="attributes,callouts"] -------------------------------------------------- -echo "deb http://packages.elastic.co/elasticsearch/{branch}/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-{branch}.list +echo "deb http://packages.elastic.co/elasticsearch/{major-version}/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-{major-version}.list -------------------------------------------------- [WARNING] @@ -57,9 +57,9 @@ If two entries exist for the same Elasticsearch repository, you will see an erro ["literal",subs="attributes,callouts"] -Duplicate sources.list entry http://packages.elastic.co/elasticsearch/{branch}/debian/ ...` +Duplicate sources.list entry http://packages.elastic.co/elasticsearch/{major-version}/debian/ ...` -Examine +/etc/apt/sources.list.d/elasticsearch-{branch}.list+ for the duplicate entry or locate the duplicate entry amongst the files in `/etc/apt/sources.list.d/` and the `/etc/apt/sources.list` file. +Examine +/etc/apt/sources.list.d/elasticsearch-{major-version}.list+ for the duplicate entry or locate the duplicate entry amongst the files in `/etc/apt/sources.list.d/` and the `/etc/apt/sources.list` file. ================================================== Configure Elasticsearch to automatically start during bootup. If your @@ -93,9 +93,9 @@ in a file with a `.repo` suffix, for example `elasticsearch.repo` ["source","sh",subs="attributes,callouts"] -------------------------------------------------- -[elasticsearch-{branch}] -name=Elasticsearch repository for {branch}.x packages -baseurl=http://packages.elastic.co/elasticsearch/{branch}/centos +[elasticsearch-{major-version}] +name=Elasticsearch repository for {major-version} packages +baseurl=http://packages.elastic.co/elasticsearch/{major-version}/centos gpgcheck=1 gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch enabled=1