Skip to content

Commit

Permalink
Make topic about installing from repos shared (elastic#3601)
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemorton authored and ruflin committed Feb 22, 2017
1 parent b87d8e9 commit 9350003
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 16 deletions.
2 changes: 1 addition & 1 deletion filebeat/docs/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mac>> for OS X, and <<win, win>> for Windows).

[NOTE]
==================================================
If you use Apt or Yum, you can {libbeat}/setup-repositories.html[install Filebeat from our repositories] to update to the newest version more easily.
If you use Apt or Yum, you can <<setup-repositories,install Filebeat from our repositories>> to update to the newest version more easily.
See our https://www.elastic.co/downloads/beats/filebeat[download page] for other installation options, such as 32-bit images.
Expand Down
2 changes: 2 additions & 0 deletions filebeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ include::./command-line.asciidoc[]

include::../../libbeat/docs/shared-directory-layout.asciidoc[]

include::../../libbeat/docs/repositories.asciidoc[]

include::./upgrading.asciidoc[]

include::./how-filebeat-works.asciidoc[]
Expand Down
2 changes: 1 addition & 1 deletion heartbeat/docs/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ system (<<deb, deb>> for Debian/Ubuntu, <<rpm, rpm>> for Redhat/Centos/Fedora,

[NOTE]
==================================================
If you use Apt or Yum, you can {libbeat}/setup-repositories.html[install Heartbeat from our repositories] to update to the newest version more easily.
If you use Apt or Yum, you can <<setup-repositories,install Heartbeat from our repositories>> to update to the newest version more easily.
See our https://www.elastic.co/downloads/beats/heartbeat[download page] for other installation options, such as 32-bit images.
Expand Down
2 changes: 2 additions & 0 deletions heartbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ include::./command-line.asciidoc[]

include::../../libbeat/docs/shared-directory-layout.asciidoc[]

include::../../libbeat/docs/repositories.asciidoc[]

//
//include::./upgrading.asciidoc[]

Expand Down
2 changes: 2 additions & 0 deletions libbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ include::./version.asciidoc[]
:winlogbeat: http://www.elastic.co/guide/en/beats/winlogbeat/{doc-branch}
:heartbeat: http://www.elastic.co/guide/en/beats/heartbeat/{doc-branch}
:securitydoc: https://www.elastic.co/guide/en/x-pack/5.2
:beatname_lc: beatname
:beatname_uc: a Beat
:security: X-Pack Security
:ES-version: {stack-version}
:LS-version: {stack-version}
Expand Down
35 changes: 23 additions & 12 deletions libbeat/docs/repositories.asciidoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//////////////////////////////////////////////////////////////////////////
//// This content is shared by all Elastic Beats. Make sure you keep the
//// descriptions here generic enough to work for all Beats that include
//// this file. When using cross references, make sure that the cross
//// references resolve correctly for any files that include this one.
//// Use the appropriate variables defined in the index.asciidoc file to
//// resolve Beat names: beatname_uc and beatname_lc.
//// Use the following include to pull this content into a doc file:
//// include::../../libbeat/docs/setup-repositories.asciidoc[]
//////////////////////////////////////////////////////////////////////////

[[setup-repositories]]
=== Repositories for APT and YUM

Expand Down Expand Up @@ -52,18 +63,18 @@ Simply delete the `deb-src` entry from the `/etc/apt/sources.list` file, and the
==================================================

. Run `apt-get update`, and the repository is ready for use. For example, you can
install Filebeat by running:
install {beatname_uc} by running:
+
[source,sh]
["source","sh",subs="attributes"]
--------------------------------------------------
sudo apt-get update && sudo apt-get install filebeat
sudo apt-get update && sudo apt-get install {beatname_lc}
--------------------------------------------------

. To configure the beat to start automatically during boot, run:
. To configure the Beat to start automatically during boot, run:
+
[source,sh]
["source","sh",subs="attributes"]
--------------------------------------------------
sudo update-rc.d filebeat defaults 95 10
sudo update-rc.d {beatname_lc} defaults 95 10
--------------------------------------------------

[float]
Expand Down Expand Up @@ -93,17 +104,17 @@ autorefresh=1
type=rpm-md
--------------------------------------------------
+
Your repository is ready to use. For example, you can install Filebeat by
Your repository is ready to use. For example, you can install {beatname_uc} by
running:
+
[source,sh]
["source","sh",subs="attributes"]
--------------------------------------------------
sudo yum install filebeat
sudo yum install {beatname_lc}
--------------------------------------------------

. To configure the beat to start automatically during boot, run:
. To configure the Beat to start automatically during boot, run:
+
[source,sh]
["source","sh",subs="attributes"]
--------------------------------------------------
sudo chkconfig --add filebeat
sudo chkconfig --add {beatname_lc}
--------------------------------------------------
2 changes: 1 addition & 1 deletion metricbeat/docs/gettingstarted.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ mac>> for OS X, and <<win, win>> for Windows).
[NOTE]
==================================================
If you use Apt or Yum, you can
{libbeat}/setup-repositories.html[install Metricbeat from our repositories] to
<<setup-repositories,install Metricbeat from our repositories>> to
update to the newest version more easily.
See our https://www.elastic.co/downloads/beats/metricbeat[download page] for
Expand Down
2 changes: 2 additions & 0 deletions metricbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ include::./command-line.asciidoc[]

include::../../libbeat/docs/shared-directory-layout.asciidoc[]

include::../../libbeat/docs/repositories.asciidoc[]

include::./upgrading.asciidoc[]

include::./how-metricbeat-works.asciidoc[]
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/docs/gettingstarted.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Redhat/Centos/Fedora, <<mac, mac>> for OS X, and <<win, win>> for Windows).

[NOTE]
==================================================
If you use Apt or Yum, you can {libbeat}/setup-repositories.html[install Packetbeat from our repositories] to update to the newest version more easily.
If you use Apt or Yum, you can <<setup-repositories,install Packetbeat from our repositories>> to update to the newest version more easily.
See our https://www.elastic.co/downloads/beats/packetbeat[download page] for other installation options, such as 32-bit images.
==================================================
Expand Down
2 changes: 2 additions & 0 deletions packetbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ include::./command-line.asciidoc[]

include::../../libbeat/docs/shared-directory-layout.asciidoc[]

include::../../libbeat/docs/repositories.asciidoc[]

include::./upgrading.asciidoc[]

include::./configuring-howto.asciidoc[]
Expand Down

0 comments on commit 9350003

Please sign in to comment.