Skip to content

Commit

Permalink
Update commands used in the quick start (elastic#22248)
Browse files Browse the repository at this point in the history
* Update commands used in the quick start

* fix typo
  • Loading branch information
dedemorton authored Oct 29, 2020
1 parent 231f5ad commit 633285e
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ When running the agent standalone, specify configuration settings in the
the `elastic-agent.yml` file. Instead, use {fleet} in {kib} to change
settings.

TIP: To get started quickly, you can use {fleet} to generate a standalone
configuration. For more information, see <<agent-standalone-mode>>.
//TIP: To get started quickly, you can use {fleet} to generate a standalone
//configuration. For more information, see <<agent-standalone-mode>>.

[discrete]
[[elastic-agent-output-configuration]]
Expand Down
60 changes: 31 additions & 29 deletions x-pack/elastic-agent/docs/tab-widgets/enroll-widget.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@
<div role="tablist" aria-label="Enroll">
<button role="tab"
aria-selected="true"
aria-controls="deb-tab-enroll"
id="deb-enroll">
DEB
</button>
<button role="tab"
aria-selected="false"
aria-controls="rpm-tab-enroll"
id="rpm-enroll">
RPM
</button>
<button role="tab"
aria-selected="false"
aria-controls="mac-tab-enroll"
id="mac-enroll">
MacOS
Expand All @@ -33,58 +21,72 @@
tabindex="-1">
Windows
</button>
<button role="tab"
aria-selected="false"
aria-controls="deb-tab-enroll"
id="deb-enroll"
tabindex="-1">
DEB
</button>
<button role="tab"
aria-selected="false"
aria-controls="rpm-tab-enroll"
id="rpm-enroll"
tabindex="-1">
RPM
</button>
</div>
<div tabindex="0"
role="tabpanel"
id="deb-tab-enroll"
aria-labelledby="deb-enroll">
id="mac-tab-enroll"
aria-labelledby="mac-enroll">
++++

include::enroll.asciidoc[tag=deb]
include::enroll.asciidoc[tag=mac]

++++
</div>
</div>
<div tabindex="0"
role="tabpanel"
id="rpm-tab-enroll"
aria-labelledby="rpm-enroll"
id="linux-tab-enroll"
aria-labelledby="linux-enroll"
hidden="">
++++

include::enroll.asciidoc[tag=rpm]
include::enroll.asciidoc[tag=linux]

++++
</div>
<div tabindex="0"
role="tabpanel"
id="mac-tab-enroll"
aria-labelledby="mac-enroll"
id="win-tab-enroll"
aria-labelledby="win-enroll"
hidden="">
++++

include::enroll.asciidoc[tag=mac]
include::enroll.asciidoc[tag=win]

++++
</div>
<div tabindex="0"
role="tabpanel"
id="linux-tab-enroll"
aria-labelledby="linux-enroll"
id="deb-tab-enroll"
aria-labelledby="deb-enroll"
hidden="">
++++

include::enroll.asciidoc[tag=linux]
include::enroll.asciidoc[tag=deb]

++++
</div>
</div>
<div tabindex="0"
role="tabpanel"
id="win-tab-enroll"
aria-labelledby="win-enroll"
id="rpm-tab-enroll"
aria-labelledby="rpm-enroll"
hidden="">
++++

include::enroll.asciidoc[tag=win]
include::enroll.asciidoc[tag=rpm]

++++
</div>
Expand Down
10 changes: 5 additions & 5 deletions x-pack/elastic-agent/docs/tab-widgets/enroll.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ integrations require root privileges to collect sensitive data.
// end::enroll-tip[]
[source,shell]
----
elastic-agent enroll KIBANA_URL ENROLLMENT_KEY
elastic-agent install -f --kibana-url=KIBANA_URL --enrollment-token=ENROLLMENT_KEY
----

include::enroll.asciidoc[tag=where-description]
Expand All @@ -19,7 +19,7 @@ include::enroll.asciidoc[tag=enroll-tip]

[source,shell]
----
elastic-agent enroll KIBANA_URL ENROLLMENT_KEY
elastic-agent install -f --kibana-url=KIBANA_URL --enrollment-token=ENROLLMENT_KEY
----

include::enroll.asciidoc[tag=where-description]
Expand All @@ -31,7 +31,7 @@ include::enroll.asciidoc[tag=enroll-tip]

[source,shell]
----
./elastic-agent enroll KIBANA_URL ENROLLMENT_KEY
./elastic-agent install -f --kibana-url=KIBANA_URL --enrollment-token=ENROLLMENT_KEY
----

include::enroll.asciidoc[tag=where-description]
Expand All @@ -43,7 +43,7 @@ include::enroll.asciidoc[tag=enroll-tip]

[source,shell]
----
./elastic-agent enroll KIBANA_URL ENROLLMENT_KEY
./elastic-agent install -f --kibana-url=KIBANA_URL --enrollment-token=ENROLLMENT_KEY
----

include::enroll.asciidoc[tag=where-description]
Expand All @@ -58,7 +58,7 @@ and run:

[source,shell]
----
.\elastic-agent.exe enroll KIBANA_URL ENROLLMENT_KEY
.\elastic-agent.exe install -f --kibana-url=KIBANA_URL --enrollment-token=ENROLLMENT_KEY
----

include::enroll.asciidoc[tag=where-description]
Expand Down
61 changes: 32 additions & 29 deletions x-pack/elastic-agent/docs/tab-widgets/install-widget.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@
<div role="tablist" aria-label="Install">
<button role="tab"
aria-selected="true"
aria-controls="deb-tab-install"
id="deb-install">
DEB
</button>
<button role="tab"
aria-selected="false"
aria-controls="rpm-tab-install"
id="rpm-install">
RPM
</button>
<button role="tab"
aria-selected="false"
aria-controls="mac-tab-install"
id="mac-install">
MacOS
Expand All @@ -33,58 +21,73 @@
tabindex="-1">
Windows
</button>
<button role="tab"
aria-selected="false"
aria-controls="deb-tab-install"
id="deb-install"
tabindex="-1">
DEB
</button>
<button role="tab"
aria-selected="false"
aria-controls="rpm-tab-install"
id="rpm-install"
tabindex="-1">
RPM
</button>
</div>
<div tabindex="0"
role="tabpanel"
id="deb-tab-install"
aria-labelledby="deb-install">
id="mac-tab-install"
aria-labelledby="mac-install">
++++

include::install.asciidoc[tag=deb]
include::install.asciidoc[tag=mac]

++++
</div>
</div>
<div tabindex="0"
role="tabpanel"
id="rpm-tab-install"
aria-labelledby="rpm-install"
id="linux-tab-install"
aria-labelledby="linux-install"
hidden="">
++++

include::install.asciidoc[tag=rpm]
include::install.asciidoc[tag=linux]

++++
</div>
<div tabindex="0"
role="tabpanel"
id="mac-tab-install"
aria-labelledby="mac-install"
id="win-tab-install"
aria-labelledby="win-install"
hidden="">
++++

include::install.asciidoc[tag=mac]
include::install.asciidoc[tag=win]

++++
</div>
<div tabindex="0"
role="tabpanel"
id="linux-tab-install"
aria-labelledby="linux-install"
id="deb-tab-install"
aria-labelledby="deb-install"
hidden="">
++++

include::install.asciidoc[tag=linux]
include::install.asciidoc[tag=deb]

++++
</div>
</div>
<div tabindex="0"
role="tabpanel"
id="win-tab-install"
aria-labelledby="win-install"
id="rpm-tab-install"
aria-labelledby="rpm-install"
hidden="">
++++

include::install.asciidoc[tag=win]
include::install.asciidoc[tag=rpm]

++++
</div>
Expand Down
10 changes: 6 additions & 4 deletions x-pack/elastic-agent/docs/tab-widgets/install.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ endif::[]

ifeval::["{release-state}"!="unreleased"]

IMPORTANT: To simplify upgrading to future versions of {agent}, we recommended
that you use the tarball distribution instead of the DEB distribution.

["source","sh",subs="attributes"]
----
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-{version}-amd64.deb
Expand All @@ -25,6 +28,9 @@ endif::[]

ifeval::["{release-state}"!="unreleased"]

IMPORTANT: To simplify upgrading to future versions of {agent}, we recommended
that you use the tarball distribution instead of the RPM distribution.

["source","sh",subs="attributes"]
----
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-{version}-x86_64.rpm
Expand Down Expand Up @@ -66,10 +72,6 @@ curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-ag
tar xzvf elastic-agent-{version}-linux-x86_64.tar.gz
----

NOTE: We recommend that you use the DEB or RPM distribution, instead of the
tarball, to ensure that {agent} restarts automatically if the system is
rebooted.

endif::[]
// end::linux[]

Expand Down

0 comments on commit 633285e

Please sign in to comment.