-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Agent] Make default config OS agnostic #17016
[Agent] Make default config OS agnostic #17016
Conversation
Pinging @elastic/ingest-management (Project:fleet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. We should continue to iterate on the naming / paths but this already improves it.
x-pack/agent/_meta/agent.docker.yml
Outdated
@@ -52,15 +52,15 @@ download: | |||
# e.g /windows-x86.zip | |||
sourceURI: "https://artifacts.elastic.co/downloads/beats/" | |||
# path to the directory containing downloaded packages | |||
target_directory: "/home/elastic/downloads" | |||
target_directory: "${path.data}/beats" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps still call it downloads
and not beats as this will also download endpoint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for download
|
going to test packaging before merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
added need backport label. |
f9b8625
to
70de174
Compare
backported in #17574 to have a working build |
… enable building the agent. (#17574) * Fix issue when building Agent snapshot and enable building the agent. (#16927) An extension in the generated files ("SNAPSHOT") was preventing us to correctly generate the agent artifact with the packaged metricbeat/filebeat. Fixes: #16908 (cherry picked from commit 62d3683) * [Agent] Fix installers (#17077) [Agent] Fix installers for snapshots (#17077) * [Agent] fixed mage package for agent (#17368) [Agent] fixed mage package for agent (#17368) * [Agent] Make default config OS agnostic (#17016) [Agent] Make default config OS agnostic (#17016) * [Agent] Docker image for integration tests (#16898) [Agent] Docker image for integration tests (#16898) Co-authored-by: Michal Pristas <[email protected]>
What does this PR do?
PR changes path of
install
anddownload
directories in default config to be OS agnostic by usingpath.data
.Why is it important?
It simplifies first run experience when running agent by removing the need to change configuration values which are configured to non existent paths.
Checklist
How to test this PR locally
You need to build and package agent to contain
data/beats
subdirectory containing filebeat and metricbeat archives (tar.gz on linux and darwin).Second step is just running agent and verifying that metricbeat was installed to
data/install
and is successfully started