This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support installing the agent with TAR installer and the install…
… subcommand (#378) * first version of feature file * fix: typos * fix: proper BDD sequencing * chore: remove non-gherkin line * chore: refine gherkin tags * chore: reuse existing step for uninstalling/restarting the agent * chore: export kibana base URL from client * feat: add support for centos/debian with TAR.GZ installer * chore: rename variable * feat: support for a TAR installer We refactored the installer install actions to delegate the execution to the installer instead of running it in the tests. We also added the new steps for the commands feature. * feat: create a local cache for downloaded binaries * fixup. new tar installer * feat: support mulltiple installer types at feature level * chore: create token before running the agent * chore: move enroll method to the installer * chore: move installFn to preInstalllFn * chore: proper life cycle for install and enroll The life cycle (preInstall > install > enroll > postInstall) depends on the installer: - TAR leverages preInstall phase to extract the TAR file and create the proper layout - RPM and DEB leverage install phase to use package managers to install the artifact - TAR leverages install phase to actually install and enroll the agent - RPM and DEP needs an extra enrollment call - TAR defines an enroll method to be used outside the life cycle - RPM and DEB leverages postInstall phase to enable and run the service using systemd * chore: add missing examples in feature file * chore: enroll ooutside of the install life cycle * chore: use existing step * chore: match existing scenario for installing an agent * chore: move to fleet feature file as an example * chore: move stop scenario to fleet feature file as an example * chore: move restart scenario as a Fleet example * chore: move unenroll scenario as a Fleet example * chore: move reenroll scenario as Fleet example * fix: use proper log path for TAR installer * fix: create the tokens in the Default policy * fix: remove the proper service name * chore: use tar installer in endpoint feature * fix: update Elastic Endpoint integration title * feat: implement the step for the empty working dir folder * fix: proper container name * chore: capture specific error for installing agent with revoked token * chore: use tar installer for fleet * chore: join process steps * chore: support for restarting the agent * chore: move subcommand scenarios to fleet ones * chore: simplify getting aggent hash and logs * fix: agents are offline after uninstall * fix: update desired status too * fix: include inactive status in check * chore: increase timeout for agent status checks Co-authored-by: Eric Davis <eric.davis@elastic.co>
- Loading branch information
1 parent
536737b
commit 093fc9e
Showing
10 changed files
with
498 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.