-
Notifications
You must be signed in to change notification settings - Fork 5k
[Agent] Include beats in agent package #15046
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8074cd6
test on linux
michalpristas 3dd24d0
fix tar balls
michalpristas 82d5a96
Merge branch 'fleet' into fleet-packaging
michalpristas 98891db
Merge branch 'fleet' into fleet-packaging
michalpristas 495d015
fixed zip and version
michalpristas 50d2fa1
fixed
michalpristas 7275b88
version
michalpristas 89ec4aa
fixed arch
michalpristas 30fdbbb
tesst with archname
michalpristas 55ddb8d
tar archname
michalpristas be4fc66
zip for windows
michalpristas c653024
Merge branch 'fleet' into fleet-packaging
michalpristas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,6 +54,13 @@ shared: | |
| /etc/init.d/{{.BeatServiceName}}: | ||
| template: '{{ elastic_beats_dir }}/dev-tools/packaging/templates/{{.PackageType}}/init.sh.tmpl' | ||
| mode: 0755 | ||
| /etc/{{.BeatName}}/beats/filebeat-{{.GOOS}}-{{.Platform.Arch}}.tar.gz: | ||
| source: '{{ elastic_beats_dir }}/x-pack/filebeat/build/package/filebeat-{{.GOOS}}-{{.Platform.Arch}}.tar.gz' | ||
| mode: 0644 | ||
| /etc/{{.BeatName}}/beats/metricbeat-{{.GOOS}}-{{.Platform.Arch}}.tar.gz: | ||
| source: '{{ elastic_beats_dir }}/x-pack/metricbeat/build/package/metricbeat-{{.GOOS}}-{{.Platform.Arch}}.tar.gz' | ||
| mode: 0644 | ||
|
|
||
|
|
||
| # MacOS pkg spec for community beats. | ||
| - &macos_agent_pkg_spec | ||
|
|
@@ -90,6 +97,12 @@ shared: | |
| source: 'agent.yml' | ||
| mode: 0600 | ||
| config: true | ||
| /etc/{{.BeatName}}/beats/filebeat-{{.GOOS}}-{{.Platform.Arch}}.tar.gz: | ||
| source: '{{ elastic_beats_dir }}/x-pack/filebeat/build/package/filebeat-{{.GOOS}}-{{.Platform.Arch}}.tar.gz' | ||
| mode: 0644 | ||
| /etc/{{.BeatName}}/beats/metricbeat-{{.GOOS}}-{{.Platform.Arch}}.tar.gz: | ||
| source: '{{ elastic_beats_dir }}/x-pack/metricbeat/build/package/metricbeat-{{.GOOS}}-{{.Platform.Arch}}.tar.gz' | ||
| mode: 0644 | ||
|
|
||
| - &agent_binary_files | ||
| '{{.BeatName}}{{.BinaryExt}}': | ||
|
|
@@ -118,6 +131,12 @@ shared: | |
| <<: *common | ||
| files: | ||
| <<: *agent_binary_files | ||
| 'beats/filebeat-{{.GOOS}}-{{.Platform.Arch}}.zip': | ||
| source: '{{ elastic_beats_dir }}/x-pack/filebeat/build/package/filebeat-{{.GOOS}}-{{.Platform.Arch}}.tar.gz' | ||
| mode: 0644 | ||
| 'beats/metricbeat-{{.GOOS}}-{{.Platform.Arch}}.zip': | ||
| source: '{{ elastic_beats_dir }}/x-pack/metricbeat/build/package/metricbeat-{{.GOOS}}-{{.Platform.Arch}}.tar.gz' | ||
| mode: 0644 | ||
|
|
||
| # Binary package spec (zip for windows) for community beats. | ||
| - &agent_windows_binary_spec | ||
|
|
@@ -130,6 +149,12 @@ shared: | |
| uninstall-service-{{.BeatName}}.ps1: | ||
| template: '{{ elastic_beats_dir }}/dev-tools/packaging/templates/windows/uninstall-service.ps1.tmpl' | ||
| mode: 0755 | ||
| 'beats/filebeat-{{.GOOS}}-{{.Platform.Arch}}.zip': | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. version? |
||
| source: '{{ elastic_beats_dir }}/x-pack/filebeat/build/package/filebeat-{{.GOOS}}-{{.Platform.Arch}}.zip' | ||
| mode: 0644 | ||
| 'beats/metricbeat-{{.GOOS}}-{{.Platform.Arch}}.zip': | ||
| source: '{{ elastic_beats_dir }}/x-pack/metricbeat/build/package/metricbeat-{{.GOOS}}-{{.Platform.Arch}}.zip' | ||
| mode: 0644 | ||
|
|
||
| - &agent_docker_spec | ||
| <<: *agent_binary_spec | ||
|
|
@@ -478,6 +503,30 @@ specs: | |
| <<: *elastic_docker_spec | ||
| <<: *elastic_license_for_binaries | ||
|
|
||
| # Elastic Beat with Elastic License and binary taken the current directory. | ||
| elastic_beat_xpack_reduced: | ||
| ### | ||
| # Elastic Licensed Packages | ||
| ### | ||
| - os: windows | ||
| types: [zip] | ||
| spec: | ||
| <<: *windows_binary_spec | ||
| <<: *elastic_license_for_binaries | ||
|
|
||
| - os: darwin | ||
| types: [tgz] | ||
| spec: | ||
| <<: *binary_spec | ||
| <<: *elastic_license_for_binaries | ||
|
|
||
| - os: linux | ||
| types: [tgz] | ||
| spec: | ||
| <<: *binary_spec | ||
| <<: *elastic_license_for_binaries | ||
|
|
||
|
|
||
| # Elastic Beat with Elastic License and binary taken from the x-pack dir. | ||
| elastic_beat_xpack_separate_binaries: | ||
| ### | ||
|
|
@@ -550,7 +599,6 @@ specs: | |
| '{{.BeatName}}{{.BinaryExt}}': | ||
| source: ./{{.XPackDir}}/{{.BeatName}}/build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}} | ||
|
|
||
|
|
||
| # Elastic Beat with Elastic License and binary taken from the x-pack dir. | ||
| elastic_beat_agent_binaries: | ||
| ### | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
zip