Skip to content

Commit

Permalink
feat(logs): Provision for amazon linux 2023 aarch64 arch (#1108)
Browse files Browse the repository at this point in the history
* provision for amazon linux 2023 aarch64 arch

* Update amazonlinux-2023.json

* PR changes for al2023 amr64

* Changing ami size for al2023 arm64

* platform version changed for al2023 for super agent

* changed ami size for al2023 arm64

---------

Co-authored-by: voorepreethi <pvoore.newrelic.com>
Co-authored-by: Rajeev Kumar <[email protected]>
  • Loading branch information
voorepreethi and nr-rkallempudi authored Sep 6, 2024
1 parent 89cab74 commit b3e8952
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 1 deletion.
5 changes: 5 additions & 0 deletions recipes/newrelic/infrastructure/logs/linux-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ installTargets:
platformFamily: rhel
platformVersion: "((7|8)\\.?.*)"
kernelArch: aarch64
- type: host
os: linux
platform: amazon
platformVersion: "(2023\\.*)"
kernelArch: aarch64

keywords:
- Logs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ installTargets:
- type: host
os: linux
platform: amazon
platformVersion: "2023"
platformVersion: "(2023\\.*)"
kernelArch: x86_64
- type: host
os: linux
Expand Down Expand Up @@ -68,6 +68,11 @@ installTargets:
platformFamily: rhel
platformVersion: "((7|8)\\.?.*)"
kernelArch: aarch64
- type: host
os: linux
platform: amazon
platformVersion: "(2023\\.*)"
kernelArch: aarch64
# Fluent Bit supported is not available for Suse aarch64
# - type: host
# os: linux
Expand Down
37 changes: 37 additions & 0 deletions test/definitions/logging/amazonlinux2023-arm64-logs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"global_tags": {
"owning_team": "virtuoso",
"Environment": "development",
"Department": "product",
"Product": "virtuoso"
},

"resources": [
{
"id": "host1",
"provider": "aws",
"type": "ec2",
"size": "t4g.nano",
"ami_name": "al2023-ami-2023.*-arm64",
"user_name": "ec2-user"
}
],

"instrumentations": {
"resources": [
{
"id": "nr_logs_amazonlinux2023",
"resource_ids": ["host1"],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
"params": {
"newrelic_cli_option": "-n logs-integration",
"validate_output": "Logs Integration\\s+\\(installed\\)",
"local_recipes": true
}
}
]
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"global_tags": {
"owning_team": "virtuoso",
"Environment": "development",
"Department": "product",
"Product": "virtuoso"
},

"resources": [
{
"id": "host1",
"provider": "aws",
"type": "ec2",
"size": "t4g.nano",
"ami_name": "al2023-ami-2023.*-arm64",
"user_name": "ec2-user"
}
],

"instrumentations": {
"resources": [
{
"id": "nr_super_agent_logs",
"resource_ids": ["host1"],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
"params": {
"env_var": "NEW_RELIC_CLI_SKIP_CORE=1",
"newrelic_cli_option": "-n super-agent,logs-integration-super-agent",
"validate_output": "Logs Integration\\s+\\(installed\\)",
"local_recipes": true,
"use_organization_id": true
}
}
]
}
}

0 comments on commit b3e8952

Please sign in to comment.