Skip to content

Commit

Permalink
fix: Migrate infra config after super agent config, tests for support…
Browse files Browse the repository at this point in the history
…ed distros (#1079)

* NR-270389 migrate infra config after super agent config

* rhel and suse

* fix supported distros tests

* remove duplicated test
  • Loading branch information
rubenruizdegauna authored May 31, 2024
1 parent 5f61da1 commit 10f5239
Show file tree
Hide file tree
Showing 21 changed files with 26 additions and 21 deletions.
3 changes: 2 additions & 1 deletion recipes/newrelic/infrastructure/super-agent/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ installTargets:
- type: host
os: linux
platformFamily: "debian"
platformVersion: "((11|12)\\.?.*)" # Bullseye, Bookworm #
- type: host
os: linux
platform: "ubuntu"
Expand Down Expand Up @@ -75,13 +76,13 @@ install:
- task: add_nr_source
- task: update_apt_nr_source
- task: install_super_agent
- task: migrate_newrelic_infra_config
- task: update_otel_license_key
- task: config_supervisors
- task: config_opamp
- task: config_host_monitoring
- task: update_otel_mem_limit
- task: update_otel_end_point
- task: migrate_newrelic_infra_config
- task: restart_super_agent
- task: assert_super_agent_started
- task: post_install
Expand Down
6 changes: 5 additions & 1 deletion recipes/newrelic/infrastructure/super-agent/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ installTargets:
- type: host
os: linux
platform: "centos"
platformFamily: rhel
platformVersion: "((7|8|9)\\.?.*)"
- type: host
os: linux
platform: "redhat"
platformFamily: rhel
platformVersion: "((7|8|9)\\.?.*)"

keywords:
- SuperAgent
Expand Down Expand Up @@ -94,13 +98,13 @@ install:
- task: setup_infra_license
- task: setup_infra_proxy
- task: install_super_agent
- task: migrate_newrelic_infra_config
- task: update_otel_license_key
- task: config_supervisors
- task: config_opamp
- task: config_host_monitoring
- task: update_otel_mem_limit
- task: update_otel_end_point
- task: migrate_newrelic_infra_config
- task: restart_super_agent
- task: assert_super_agent_started
- task: post_install
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/super-agent/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ install:
- task: setup_infra_license
- task: setup_infra_proxy
- task: install_super_agent
- task: migrate_newrelic_infra_config
- task: update_otel_license_key
- task: config_supervisors
- task: config_opamp
- task: config_host_monitoring
- task: update_otel_mem_limit
- task: update_otel_end_point
- task: migrate_newrelic_infra_config
- task: restart_super_agent
- task: assert_super_agent_started
- task: post_install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"validate_output": "super-agent\\s+\\(unsupported\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"validate_output": "super-agent\\s+\\(unsupported\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/rhel.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/rhel.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/rhel.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/rhel.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/suse.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"validate_output": "super-agent\\s+\\(unsupported\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"validate_output": "super-agent\\s+\\(unsupported\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/rhel.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/rhel.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/rhel.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/rhel.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/suse.yml",
"validate_output": "New Relic Super Agent\\s+\\(incomplete\\)",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
Expand Down

0 comments on commit 10f5239

Please sign in to comment.