Skip to content

Commit 10f5239

Browse files
fix: Migrate infra config after super agent config, tests for supported distros (#1079)
* NR-270389 migrate infra config after super agent config * rhel and suse * fix supported distros tests * remove duplicated test
1 parent 5f61da1 commit 10f5239

21 files changed

+26
-21
lines changed

recipes/newrelic/infrastructure/super-agent/debian.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ installTargets:
1010
- type: host
1111
os: linux
1212
platformFamily: "debian"
13+
platformVersion: "((11|12)\\.?.*)" # Bullseye, Bookworm #
1314
- type: host
1415
os: linux
1516
platform: "ubuntu"
@@ -75,13 +76,13 @@ install:
7576
- task: add_nr_source
7677
- task: update_apt_nr_source
7778
- task: install_super_agent
78-
- task: migrate_newrelic_infra_config
7979
- task: update_otel_license_key
8080
- task: config_supervisors
8181
- task: config_opamp
8282
- task: config_host_monitoring
8383
- task: update_otel_mem_limit
8484
- task: update_otel_end_point
85+
- task: migrate_newrelic_infra_config
8586
- task: restart_super_agent
8687
- task: assert_super_agent_started
8788
- task: post_install

recipes/newrelic/infrastructure/super-agent/rhel.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ installTargets:
2424
- type: host
2525
os: linux
2626
platform: "centos"
27+
platformFamily: rhel
28+
platformVersion: "((7|8|9)\\.?.*)"
2729
- type: host
2830
os: linux
2931
platform: "redhat"
32+
platformFamily: rhel
33+
platformVersion: "((7|8|9)\\.?.*)"
3034

3135
keywords:
3236
- SuperAgent
@@ -94,13 +98,13 @@ install:
9498
- task: setup_infra_license
9599
- task: setup_infra_proxy
96100
- task: install_super_agent
97-
- task: migrate_newrelic_infra_config
98101
- task: update_otel_license_key
99102
- task: config_supervisors
100103
- task: config_opamp
101104
- task: config_host_monitoring
102105
- task: update_otel_mem_limit
103106
- task: update_otel_end_point
107+
- task: migrate_newrelic_infra_config
104108
- task: restart_super_agent
105109
- task: assert_super_agent_started
106110
- task: post_install

recipes/newrelic/infrastructure/super-agent/suse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ install:
6565
- task: setup_infra_license
6666
- task: setup_infra_proxy
6767
- task: install_super_agent
68-
- task: migrate_newrelic_infra_config
6968
- task: update_otel_license_key
7069
- task: config_supervisors
7170
- task: config_opamp
7271
- task: config_host_monitoring
7372
- task: update_otel_mem_limit
7473
- task: update_otel_end_point
74+
- task: migrate_newrelic_infra_config
7575
- task: restart_super_agent
7676
- task: assert_super_agent_started
7777
- task: post_install

test/definitions-eu/super-agent/debians/debian10-super-agent-eu.json renamed to test/definitions-eu/super-agent/debians/debian10-super-agent-eu-fail.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
2626
"params": {
2727
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
28-
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
28+
"validate_output": "super-agent\\s+\\(unsupported\\)",
2929
"recipe_targeted": "super-agent"
3030
}
3131
}

test/definitions-eu/super-agent/debians/debian10arm64-super-agent-eu.json renamed to test/definitions-eu/super-agent/debians/debian10arm64-super-agent-eu-fail.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
2626
"params": {
2727
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
28-
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
28+
"validate_output": "super-agent\\s+\\(unsupported\\)",
2929
"recipe_targeted": "super-agent"
3030
}
3131
}

test/definitions-eu/super-agent/debians/ubuntu16-super-agent-eu-fail.json renamed to test/definitions-eu/super-agent/debians/ubuntu16-super-agent-eu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
2828
"params": {
2929
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
30-
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
30+
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
3131
"recipe_targeted": "super-agent"
3232
}
3333
}

test/definitions/super-agent/debians/ubuntu18-super-agent-fail.json renamed to test/definitions-eu/super-agent/debians/ubuntu18-super-agent-eu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
2828
"params": {
2929
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
30-
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
30+
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
3131
"recipe_targeted": "super-agent"
3232
}
3333
}

test/definitions/super-agent/rhel/awslinux23-super-agent-fail.json renamed to test/definitions-eu/super-agent/rhel/awslinux23-super-agent-eu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
2828
"params": {
2929
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/rhel.yml",
30-
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
30+
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
3131
"recipe_targeted": "super-agent"
3232
}
3333
}

test/definitions-eu/super-agent/rhel/awslinuxarm64-super-agent-eu-fail.json renamed to test/definitions-eu/super-agent/rhel/awslinuxarm64-super-agent-eu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
2727
"params": {
2828
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/rhel.yml",
29-
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
29+
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
3030
"recipe_targeted": "super-agent"
3131
}
3232
}

test/definitions-eu/super-agent/rhel/centos7-super-agent-eu-fail.json renamed to test/definitions-eu/super-agent/rhel/centos7-super-agent-eu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
2828
"params": {
2929
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/rhel.yml",
30-
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
30+
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
3131
"recipe_targeted": "super-agent"
3232
}
3333
}

0 commit comments

Comments
 (0)