-
Notifications
You must be signed in to change notification settings - Fork 3
feat: linux nr infra pck download agent type #2213
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
Draft
alvarocabanas
wants to merge
1
commit into
freeze-develop
Choose a base branch
from
feat/NR_497543_linux_nr_infra_pck_download_agent_type
base: freeze-develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+119
−33
Draft
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,6 +80,27 @@ variables: | |
| type: number | ||
| required: false | ||
| default: 18003 | ||
| oci: | ||
| registry: | ||
| description: "Package registry url" | ||
| type: string | ||
| required: false | ||
| default: docker.io | ||
| variants: | ||
| ac_config_field: "oci_registry_urls" | ||
| values: [ "docker.io" ] | ||
| repository: | ||
| description: "Package repository name" | ||
| type: string | ||
| required: false | ||
| default: newrelic/infrastructure-agent-artifacts | ||
| variants: | ||
| ac_config_field: "oci_repository_urls" | ||
| values: [ "newrelic/infrastructure-agent-artifacts" ] | ||
| version: | ||
| description: "Agent version" | ||
| type: string | ||
| required: true | ||
| k8s: | ||
| # HelmChart based sub agents should always have `chart_values`. | ||
| chart_values: | ||
|
|
@@ -197,11 +218,13 @@ deployment: | |
| NRIA_LOG_ROTATE_MAX_FILES: "5" | ||
| NRIA_CUSTOM_PLUGIN_INSTALLATION_DIR: "${nr-sub:packages.infra-agent.dir}\\integrations" | ||
| NRIA_SAFE_BIN_DIR: "${nr-sub:packages.infra-agent.dir}\\integrations" | ||
| # Config folders where integrations and logging configs parsed from local/remote values are stored and looked for. | ||
| NRIA_PLUGIN_DIR: "${nr-sub:filesystem_agent_dir}\\integrations.d" | ||
| NRIA_LOGGING_CONFIGS_DIR: "${nr-sub:filesystem_agent_dir}\\logging.d" | ||
| NRIA_FLUENT_BIT_EXE_PATH: "${nr-sub:packages.infra-agent.dir}\\logging\\fluent-bit.exe" | ||
| NRIA_FLUENT_BIT_PARSERS_PATH: "${nr-sub:packages.infra-agent.dir}\\logging\\parsers.conf" | ||
| NRIA_FLUENT_BIT_NR_LIB_PATH: "${nr-sub:packages.infra-agent.dir}\\logging\\out_newrelic.dll" | ||
| # Where fluent-bit exe is installed | ||
| NRIA_LOGGING_BIN_DIR: "${nr-sub:packages.infra-agent.dir}\\logging" | ||
| # Where parsers.conf and out_newrelic.so are placed and fb.db will be created | ||
| NRIA_LOGGING_HOME_DIR: "${nr-sub:packages.infra-agent.dir}\\logging" | ||
| NRIA_STATUS_SERVER_ENABLED: true | ||
| NRIA_STATUS_SERVER_PORT: "${nr-var:health_port}" | ||
| NR_HOST_ID: "${nr-ac:host_id}" | ||
|
|
@@ -218,6 +241,14 @@ deployment: | |
| http: | ||
| path: "/v1/status/health" | ||
| port: ${nr-var:health_port} | ||
| packages: | ||
| infra-agent: | ||
| type: tar | ||
| download: | ||
| oci: | ||
| registry: ${nr-var:oci.registry} | ||
| repository: ${nr-var:oci.repository} | ||
| version: ${nr-var:version} | ||
| version: | ||
| path: /usr/bin/newrelic-infra | ||
| args: | ||
|
|
@@ -231,13 +262,24 @@ deployment: | |
| logging.d: ${nr-var:config_logging} | ||
| executables: | ||
| - id: newrelic-infra | ||
| path: /usr/bin/newrelic-infra | ||
| path: ${nr-sub:packages.infra-agent.dir}/newrelic-infra | ||
| args: | ||
| - --config | ||
| - ${nr-sub:filesystem_agent_dir}/config/newrelic-infra.yaml | ||
| env: | ||
| # NRIA_AGENT_DIR is needed in order to change the root directory for the agent data on Linux. | ||
| # This is useful to make sure that all the data generated by the agent is stored inside the AC managed filesystem directory. | ||
| # Otherwise, a user could write data to a folder with lower permissions and potentially escalate privileges. | ||
| # For the same reason we are also changing the location of the integration binaries. | ||
| NRIA_AGENT_DIR: "${nr-sub:filesystem_agent_dir}/newrelic-infra" | ||
| NRIA_CUSTOM_PLUGIN_INSTALLATION_DIR: "${nr-sub:packages.infra-agent.dir}/integrations" | ||
| NRIA_SAFE_BIN_DIR: "${nr-sub:packages.infra-agent.dir}/integrations" | ||
| # Config folders where integrations and logging configs parsed from local/remote values are stored and looked for. | ||
| NRIA_PLUGIN_DIR: "${nr-sub:filesystem_agent_dir}/integrations.d" | ||
| NRIA_LOGGING_CONFIGS_DIR: "${nr-sub:filesystem_agent_dir}/logging.d" | ||
| # Where parsers.conf and out_newrelic.so are placed and fb.db will be created | ||
| NRIA_LOGGING_HOME_DIR: "${nr-sub:packages.infra-agent.dir}/logging" | ||
|
Member
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. @gsanchezgavier is this the variable that caused the leakage? |
||
| # NRIA_LOGGING_BIN_DIR is not added because it continues being installed with apt, yum, zypp in its current location. | ||
| NRIA_STATUS_SERVER_ENABLED: true | ||
| NRIA_STATUS_SERVER_PORT: "${nr-var:health_port}" | ||
| NR_HOST_ID: "${nr-ac:host_id}" | ||
|
|
||
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
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
Oops, something went wrong.
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.
this is not needed
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.
Why isn't it?
We do have it for windows.
type: zipThere 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.
I believe that now we are taking such info from the package itself see https://github.com/newrelic/newrelic-agent-control/pulls