Skip to content

Commit 4c0246b

Browse files
authored
fix: Amazon linux 2023 logs and infra agent installtargets (#1114)
* fix: Amazon linux 2023 logs and infra agent installtargets * test: Updated the AMI * chore: Revised size
1 parent 80f4e0e commit 4c0246b

File tree

5 files changed

+79
-75
lines changed

5 files changed

+79
-75
lines changed

recipes/newrelic/infrastructure/awslinux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ installTargets:
2525
os: linux
2626
platform: amazon
2727
platformFamily: rhel
28-
platformVersion: "2023"
28+
platformVersion: "(2023\\.*)"
2929

3030
keywords:
3131
- Infrastructure

recipes/newrelic/infrastructure/logs/linux-logs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ installTargets:
2323
- type: host
2424
os: linux
2525
platform: amazon
26-
platformVersion: "2023"
26+
platformVersion: "(2023\\.*)"
2727
kernelArch: x86_64
2828
- type: host
2929
os: linux
Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
11
{
2-
"global_tags": {
3-
"owning_team": "virtuoso",
4-
"Environment": "development",
5-
"Department": "product",
6-
"Product": "virtuoso"
7-
},
2+
"global_tags": {
3+
"owning_team": "virtuoso",
4+
"Environment": "development",
5+
"Department": "product",
6+
"Product": "virtuoso"
7+
},
88

9-
"resources": [{
10-
"id": "host1",
11-
"provider": "aws",
12-
"ami_name": "amzn-ami-hvm-????.??.*-x86_64-gp2",
13-
"type": "ec2",
14-
"size": "t3.nano"
15-
}],
9+
"resources": [
10+
{
11+
"id": "host1",
12+
"provider": "aws",
13+
"ami_name": "amzn2-ami-hvm-????.??.*-x86_64-gp2",
14+
"type": "ec2",
15+
"size": "t3.nano"
16+
}
17+
],
1618

17-
"instrumentations": {
18-
"resources": [
19-
{
20-
"id": "nr_infra",
21-
"resource_ids": ["host1"],
22-
"provider": "newrelic",
23-
"source_repository": "https://github.com/newrelic/open-install-library",
24-
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
25-
"params": {
26-
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/awslinux.yml",
27-
"validate_output": "Infrastructure Agent\\s+\\(installed\\)"
28-
}
19+
"instrumentations": {
20+
"resources": [
21+
{
22+
"id": "nr_infra",
23+
"resource_ids": ["host1"],
24+
"provider": "newrelic",
25+
"source_repository": "https://github.com/newrelic/open-install-library",
26+
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
27+
"params": {
28+
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/awslinux.yml",
29+
"validate_output": "Infrastructure Agent\\s+\\(installed\\)"
2930
}
30-
]
31-
}
31+
}
32+
]
33+
}
3234
}
Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
{
2-
"global_tags": {
3-
"owning_team": "virtuoso",
4-
"Environment": "development",
5-
"Department": "product",
6-
"Product": "virtuoso"
7-
},
8-
2+
"global_tags": {
3+
"owning_team": "virtuoso",
4+
"Environment": "development",
5+
"Department": "product",
6+
"Product": "virtuoso"
7+
},
8+
9+
"resources": [
10+
{
11+
"id": "host1",
12+
"provider": "aws",
13+
"type": "ec2",
14+
"size": "t3.nano",
15+
"ami_name": "amzn-ami-hvm-2018.03.0.????????.?-x86_64-gp2",
16+
"user_name": "ec2-user"
17+
}
18+
],
19+
20+
"instrumentations": {
921
"resources": [
1022
{
11-
"id": "host1",
12-
"provider": "aws",
13-
"type": "ec2",
14-
"size": "t3.nano",
15-
"ami_name": "amzn-ami-hvm-2018.03.0.????????.?-x86_64-gp2",
16-
"user_name": "ec2-user"
17-
}
18-
],
19-
20-
"instrumentations": {
21-
"resources": [
22-
{
23-
"id": "nr_logging_amazon2018",
24-
"resource_ids": ["host1"],
25-
"provider": "newrelic",
26-
"source_repository": "https://github.com/newrelic/open-install-library",
27-
"deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
28-
"params": {
29-
"newrelic_cli_option": "-n logs-integration",
30-
"validate_output": "logs-integration\\s+\\(unsupported\\)",
31-
"local_recipes": true
32-
}
23+
"id": "nr_logging_amazon2018",
24+
"resource_ids": ["host1"],
25+
"provider": "newrelic",
26+
"source_repository": "https://github.com/newrelic/open-install-library",
27+
"deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
28+
"params": {
29+
"newrelic_cli_option": "-n logs-integration",
30+
"validate_output": "logs-integration\\s+\\(unsupported\\)",
31+
"local_recipes": true
3332
}
34-
]
35-
}
36-
}
33+
}
34+
]
35+
}
36+
}
Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2-
"global_tags": {
3-
"owning_team": "virtuoso",
4-
"Environment": "development",
5-
"Department": "product",
6-
"Product": "virtuoso"
7-
},
2+
"global_tags": {
3+
"owning_team": "virtuoso",
4+
"Environment": "development",
5+
"Department": "product",
6+
"Product": "virtuoso"
7+
},
88

9-
"resources": [{
10-
"id": "host1",
11-
"provider": "aws",
12-
"ami_name": "amzn-ami-hvm-????.??.*-x86_64-gp2",
13-
"type": "ec2",
14-
"size": "t3.nano"
15-
}]
16-
}
9+
"resources": [
10+
{
11+
"id": "host1",
12+
"provider": "aws",
13+
"ami_name": "amzn2-ami-hvm-????.??.*-x86_64-gp2",
14+
"type": "ec2",
15+
"size": "t3.nano"
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)