diff --git a/recipes/newrelic/infrastructure/super-agent/debian.yml b/recipes/newrelic/infrastructure/super-agent/debian.yml index 588b2b7e..d331155f 100644 --- a/recipes/newrelic/infrastructure/super-agent/debian.yml +++ b/recipes/newrelic/infrastructure/super-agent/debian.yml @@ -61,11 +61,16 @@ preInstall: install: version: "3" silent: true - + vars: + IS_SYSTEMCTL: + sh: command -v systemctl | wc -l + IS_INITCTL: + sh: command -v initctl | wc -l tasks: default: cmds: - task: write_recipe_metadata + - task: detect_previous_install - task: assert_pre_req - task: cleanup - task: setup_infra_license @@ -88,6 +93,7 @@ install: - task: migrate_newrelic_infra_config - task: restart_super_agent - task: assert_super_agent_started + - task: signal_recipe_applied - task: post_install write_recipe_metadata: @@ -95,6 +101,14 @@ install: - | echo '{"Metadata":{"CapturedCliOutput":"true"}}' | tee {{.NR_CLI_OUTPUT}} > /dev/null + detect_previous_install: + cmds: + - | + if [ -f /etc/newrelic-super-agent/.nr-cli ] ; then + echo "A previous execution of this installation was detected. Some installation tasks will be skipped." + echo "If you would like to run all the tasks, please remove the /etc/newrelic-super-agent/.nr-cli file and re-run the installation." + fi + assert_pre_req: cmds: - | @@ -183,6 +197,9 @@ install: sh: cat /etc/os-release | grep "VERSION=\"[0-9] " | awk -F " " '{print $2}' | sed 's/[()"]//g' cleanup: + # skipping this task if .nr-cli exists + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_INFRA_AGENT}}" != "false" ] ; then @@ -190,6 +207,8 @@ install: fi setup_infra_license: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_INFRA_AGENT}}" != "false" ] ; then @@ -233,8 +252,9 @@ install: echo 'license_key: {{`{{NEW_RELIC_LICENSE_KEY}}`}}' >> /etc/newrelic-infra.yml echo '{{.NRIA_CUSTOM_ATTRIBUTES}}' >> /etc/newrelic-infra.yml fi - setup_infra_proxy: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_INFRA_AGENT}}" != "false" ] && [ ! -z "$HTTPS_PROXY" ]; then @@ -350,6 +370,8 @@ install: # If configured to do so, migrate the newrelic-infra configuration for usage with the super agent migrate_newrelic_infra_config: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ -f /etc/newrelic-infra-do-migrate ]; then @@ -359,12 +381,16 @@ install: # Add NR Ingest Key as ENV Var for the Super Agent Systemd service (used by Infra Agent and Otel) update_otel_license_key: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | sed -i "/^NEW_RELIC_LICENSE_KEY/d" /etc/newrelic-super-agent/newrelic-super-agent.conf echo 'NEW_RELIC_LICENSE_KEY="{{.NEW_RELIC_LICENSE_KEY}}"' >> /etc/newrelic-super-agent/newrelic-super-agent.conf update_otel_mem_limit: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_NRDOT}}" != "false" ]; then @@ -373,6 +399,8 @@ install: # Add OTLP Endpoint as ENV Var for the Super Agent Systemd service update_otel_end_point: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_NRDOT}}" != "false" ]; then @@ -386,6 +414,8 @@ install: fi config_supervisors: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_INFRA_AGENT}}" = "false" ] && [ "{{.NR_CLI_NRDOT}}" = "false" ]; then @@ -411,6 +441,8 @@ install: fi config_fleet_id: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ ! -z "{{.NR_CLI_FLEET_ID}}" ] ; then @@ -419,6 +451,8 @@ install: fi config_opamp: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NEW_RELIC_SUPER_AGENT_FLEET_ENABLED}}" = "false" ]; then @@ -450,6 +484,8 @@ install: fi config_super_agent_auth: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NEW_RELIC_SUPER_AGENT_FLEET_ENABLED}}" != "false" ] && [ "{{ .NEW_RELIC_ORGANIZATION }}" != "" ]; then @@ -543,6 +579,8 @@ install: fi config_host_monitoring: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NEW_RELIC_SUPER_AGENT_HOST_MONITORING_SOURCE}}" = "otel" ]; then @@ -568,11 +606,6 @@ install: /etc/init.d/newrelic-super-agent restart fi fi - vars: - IS_SYSTEMCTL: - sh: command -v systemctl | wc -l - IS_INITCTL: - sh: command -v initctl | wc -l assert_super_agent_started: cmds: @@ -582,9 +615,19 @@ install: IS_AGENT_INSTALLED=$(sudo ps aux | grep newrelic-super-agent | grep -v grep | wc -l) if [ $IS_AGENT_INSTALLED -eq 0 ] ; then echo "The newrelic super agent has not started after installing. Please try again later, or see our documentation for installing manually https://docs.newrelic.com/docs/using-new-relic/cross-product-functions/install-configure/install-new-relic" >&2 + + if [ {{.IS_SYSTEMCTL}} -gt 0 ]; then + journalctl -u newrelic-super-agent --no-pager + fi + exit 31 fi + signal_recipe_applied: + cmds: + - | + touch /etc/newrelic-super-agent/.nr-cli + post_install: info: |2 ⚙️ The New Relic Super Agent configuration file can be found in /etc/newrelic-super-agent/config.yaml diff --git a/recipes/newrelic/infrastructure/super-agent/rhel.yml b/recipes/newrelic/infrastructure/super-agent/rhel.yml index cab2cd11..5e6d1046 100644 --- a/recipes/newrelic/infrastructure/super-agent/rhel.yml +++ b/recipes/newrelic/infrastructure/super-agent/rhel.yml @@ -87,11 +87,16 @@ install: sh: if [ {{.AMAZON_LINUX_VERSION}} = "2" ] || [ {{.AMAZON_LINUX_VERSION}} = "2023" ]; then echo "amazonlinux"; else echo "el"; fi ARCH: sh: uname -m + IS_SYSTEMCTL: + sh: command -v systemctl | wc -l + IS_INITCTL: + sh: command -v initctl | wc -l tasks: default: cmds: - task: write_recipe_metadata + - task: detect_previous_install - task: assert_pre_req - task: cleanup - task: setup_infra_license @@ -108,6 +113,7 @@ install: - task: migrate_newrelic_infra_config - task: restart_super_agent - task: assert_super_agent_started + - task: signal_recipe_applied - task: post_install write_recipe_metadata: @@ -115,6 +121,14 @@ install: - | echo '{"Metadata":{"CapturedCliOutput":"true"}}' | tee {{.NR_CLI_OUTPUT}} > /dev/null + detect_previous_install: + cmds: + - | + if [ -f /etc/newrelic-super-agent/.nr-cli ] ; then + echo "A previous execution of this installation was detected. Some installation tasks will be skipped." + echo "If you would like to run all the tasks, please remove the /etc/newrelic-super-agent/.nr-cli file and re-run the installation." + fi + assert_pre_req: cmds: - | @@ -194,6 +208,9 @@ install: rpm -E %{rhel} cleanup: + # skipping this task if .nr-cli exists + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_INFRA_AGENT}}" != "false" ] ; then @@ -201,6 +218,8 @@ install: fi setup_infra_license: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_INFRA_AGENT}}" != "false" ] ; then @@ -291,6 +310,8 @@ install: # If configured to do so, migrate the newrelic-infra configuration for usage with the super agent migrate_newrelic_infra_config: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ -f /etc/newrelic-infra-do-migrate ]; then @@ -299,12 +320,16 @@ install: fi update_otel_license_key: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | sed -i "/^NEW_RELIC_LICENSE_KEY/d" /etc/newrelic-super-agent/newrelic-super-agent.conf echo 'NEW_RELIC_LICENSE_KEY="{{.NEW_RELIC_LICENSE_KEY}}"' >> /etc/newrelic-super-agent/newrelic-super-agent.conf update_otel_mem_limit: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_NRDOT}}" != "false" ]; then @@ -313,6 +338,8 @@ install: # Add OTLP Endpoint as ENV Var for the Super Agent Systemd service update_otel_end_point: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_NRDOT}}" != "false" ]; then @@ -326,6 +353,8 @@ install: fi config_supervisors: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_INFRA_AGENT}}" = "false" ] && [ "{{.NR_CLI_NRDOT}}" = "false" ]; then @@ -351,6 +380,8 @@ install: fi config_fleet_id: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ ! -z "{{.NR_CLI_FLEET_ID}}" ] ; then @@ -359,6 +390,8 @@ install: fi config_opamp: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NEW_RELIC_SUPER_AGENT_FLEET_ENABLED}}" = "false" ]; then @@ -390,6 +423,8 @@ install: fi config_super_agent_auth: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NEW_RELIC_SUPER_AGENT_FLEET_ENABLED}}" != "false" ] && [ "{{ .NEW_RELIC_ORGANIZATION }}" != "" ]; then @@ -483,6 +518,8 @@ install: fi config_host_monitoring: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NEW_RELIC_SUPER_AGENT_HOST_MONITORING_SOURCE}}" = "otel" ]; then @@ -508,11 +545,6 @@ install: /etc/init.d/newrelic-super-agent restart fi fi - vars: - IS_SYSTEMCTL: - sh: command -v systemctl | wc -l - IS_INITCTL: - sh: command -v initctl | wc -l assert_super_agent_started: cmds: @@ -522,9 +554,19 @@ install: IS_AGENT_INSTALLED=$(sudo ps aux | grep newrelic-super-agent | grep -v grep | wc -l) if [ $IS_AGENT_INSTALLED -eq 0 ] ; then echo "The newrelic super agent has not started after installing. Please try again later, or see our documentation for installing manually https://docs.newrelic.com/docs/using-new-relic/cross-product-functions/install-configure/install-new-relic" >&2 + + if [ {{.IS_SYSTEMCTL}} -gt 0 ]; then + journalctl -u newrelic-super-agent --no-pager + fi + exit 31 fi + signal_recipe_applied: + cmds: + - | + touch /etc/newrelic-super-agent/.nr-cli + post_install: info: |2 ⚙️ The New Relic Super Agent configuration file can be found in /etc/newrelic-super-agent/config.yaml diff --git a/recipes/newrelic/infrastructure/super-agent/suse.yml b/recipes/newrelic/infrastructure/super-agent/suse.yml index 4873a2cc..13b37727 100644 --- a/recipes/newrelic/infrastructure/super-agent/suse.yml +++ b/recipes/newrelic/infrastructure/super-agent/suse.yml @@ -53,11 +53,16 @@ preInstall: install: version: "3" silent: true - + vars: + IS_SYSTEMCTL: + sh: command -v systemctl | wc -l + IS_INITCTL: + sh: command -v initctl | wc -l tasks: default: cmds: - task: write_recipe_metadata + - task: detect_previous_install - task: assert_pre_req - task: cleanup - task: setup_infra_license @@ -74,6 +79,7 @@ install: - task: migrate_newrelic_infra_config - task: restart_super_agent - task: assert_super_agent_started + - task: signal_recipe_applied - task: post_install write_recipe_metadata: @@ -81,6 +87,14 @@ install: - | echo '{"Metadata":{"CapturedCliOutput":"true"}}' | tee {{.NR_CLI_OUTPUT}} > /dev/null + detect_previous_install: + cmds: + - | + if [ -f /etc/newrelic-super-agent/.nr-cli ] ; then + echo "A previous execution of this installation was detected. Some installation tasks will be skipped." + echo "If you would like to run all the tasks, please remove the /etc/newrelic-super-agent/.nr-cli file and re-run the installation." + fi + assert_pre_req: cmds: - | @@ -154,11 +168,16 @@ install: sh: awk -F= '/VERSION_ID/ {print $2}' /etc/os-release cleanup: + # skipping this task if .nr-cli exists + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | rm -rf /var/db/newrelic-infra/data 2>/dev/null setup_infra_license: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_INFRA_AGENT}}" != "false" ] ; then @@ -205,6 +224,8 @@ install: fi setup_infra_proxy: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_INFRA_AGENT}}" != "false" ] && [ ! -z "$HTTPS_PROXY" ]; then @@ -240,6 +261,8 @@ install: # If configured to do so, migrate the newrelic-infra configuration for usage with the super agent migrate_newrelic_infra_config: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ -f /etc/newrelic-infra-do-migrate ]; then @@ -248,12 +271,16 @@ install: fi update_otel_license_key: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | sed -i "/^NEW_RELIC_LICENSE_KEY/d" /etc/newrelic-super-agent/newrelic-super-agent.conf echo 'NEW_RELIC_LICENSE_KEY="{{.NEW_RELIC_LICENSE_KEY}}"' >> /etc/newrelic-super-agent/newrelic-super-agent.conf update_otel_mem_limit: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_NRDOT}}" != "false" ]; then @@ -262,6 +289,8 @@ install: # Add OTLP Endpoint as ENV Var for the Super Agent Systemd service update_otel_end_point: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_NRDOT}}" != "false" ]; then @@ -275,6 +304,8 @@ install: fi config_supervisors: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NR_CLI_INFRA_AGENT}}" = "false" ] && [ "{{.NR_CLI_NRDOT}}" = "false" ]; then @@ -300,6 +331,8 @@ install: fi config_fleet_id: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ ! -z "{{.NR_CLI_FLEET_ID}}" ] ; then @@ -308,6 +341,8 @@ install: fi config_opamp: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NEW_RELIC_SUPER_AGENT_FLEET_ENABLED}}" = "false" ]; then @@ -339,6 +374,8 @@ install: fi config_super_agent_auth: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NEW_RELIC_SUPER_AGENT_FLEET_ENABLED}}" != "false" ] && [ "{{ .NEW_RELIC_ORGANIZATION }}" != "" ]; then @@ -432,6 +469,8 @@ install: fi config_host_monitoring: + status: + - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NEW_RELIC_SUPER_AGENT_HOST_MONITORING_SOURCE}}" = "otel" ]; then @@ -457,11 +496,6 @@ install: /etc/init.d/newrelic-super-agent restart fi fi - vars: - IS_SYSTEMCTL: - sh: command -v systemctl | wc -l - IS_INITCTL: - sh: command -v initctl | wc -l assert_super_agent_started: cmds: @@ -471,9 +505,19 @@ install: IS_AGENT_INSTALLED=$(sudo ps aux | grep newrelic-super-agent | grep -v grep | wc -l) if [ $IS_AGENT_INSTALLED -eq 0 ] ; then echo "The newrelic super agent has not started after installing. Please try again later, or see our documentation for installing manually https://docs.newrelic.com/docs/using-new-relic/cross-product-functions/install-configure/install-new-relic" >&2 + + if [ {{.IS_SYSTEMCTL}} -gt 0 ]; then + journalctl -u newrelic-super-agent --no-pager + fi + exit 31 fi + signal_recipe_applied: + cmds: + - | + touch /etc/newrelic-super-agent/.nr-cli + post_install: info: |2 ⚙️ The New Relic Super Agent configuration file can be found in /etc/newrelic-super-agent/config.yaml diff --git a/test/definitions-eu/super-agent/rhel/centos7-super-agent-eu.json b/test/definitions-eu/super-agent/rhel/centos7-super-agent-eu.json deleted file mode 100644 index 727d8cdf..00000000 --- a/test/definitions-eu/super-agent/rhel/centos7-super-agent-eu.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "global_tags": { - "owning_team": "virtuoso", - "Environment": "development", - "Department": "product", - "Product": "virtuoso" - }, - "resources": [ - { - "id": "host1", - "provider": "aws", - "type": "ec2", - "size": "t3.nano", - "ami_name": "CentOS-7-????-????????_?.x86_64-*", - "user_name": "centos" - } - ], - "instrumentations": { - "resources": [ - { - "id": "nr_super_agent", - "resource_ids": ["host1"], - "provider": "newrelic", - "source_repository": "https://github.com/newrelic/open-install-library.git", - "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+\\(installed\\)", - "recipe_targeted": "super-agent", - "use_organization_id": true - } - } - ] - } -} diff --git a/test/definitions-eu/super-agent/rhel/centos8-super-agent-eu.json b/test/definitions-eu/super-agent/rhel/centos8-super-agent-eu.json deleted file mode 100644 index b9801b4d..00000000 --- a/test/definitions-eu/super-agent/rhel/centos8-super-agent-eu.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "global_tags": { - "owning_team": "virtuoso", - "Environment": "development", - "Department": "product", - "Product": "virtuoso" - }, - - "resources": [ - { - "id": "host1", - "provider": "aws", - "type": "ec2", - "size": "t3.nano", - "ami_name": "CentOS Stream 8 x86_64 ????????", - "user_name": "centos" - } - ], - - "instrumentations": { - "resources": [ - { - "id": "nr_super_agent", - "resource_ids": ["host1"], - "provider": "newrelic", - "source_repository": "https://github.com/newrelic/open-install-library.git", - "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+\\(installed\\)", - "recipe_targeted": "super-agent", - "use_organization_id": true - } - } - ] - } -} diff --git a/test/definitions-eu/super-agent/rhel/centos8arm64-super-agent-eu.json b/test/definitions-eu/super-agent/rhel/centos8arm64-super-agent-eu.json deleted file mode 100644 index 7b1a3d4a..00000000 --- a/test/definitions-eu/super-agent/rhel/centos8arm64-super-agent-eu.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "global_tags": { - "owning_team": "virtuoso", - "Environment": "development", - "Department": "product", - "Product": "virtuoso" - }, - - "resources": [ - { - "id": "host1", - "provider": "aws", - "type": "ec2", - "size": "t4g.small", - "ami_name": "ProComputers CentOS-Stream-8-arm64-Minimal-8GiB-HVM-????????*", - "user_name": "centos" - } - ], - - "instrumentations": { - "resources": [ - { - "id": "nr_super_agent", - "resource_ids": ["host1"], - "provider": "newrelic", - "source_repository": "https://github.com/newrelic/open-install-library.git", - "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+\\(installed\\)", - "recipe_targeted": "super-agent", - "use_organization_id": true - } - } - ] - } -} diff --git a/test/definitions-eu/super-agent/rhel/redhat7-super-agent-eu.json b/test/definitions-eu/super-agent/rhel/redhat7-super-agent-eu.json deleted file mode 100644 index e8b04c1e..00000000 --- a/test/definitions-eu/super-agent/rhel/redhat7-super-agent-eu.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "global_tags": { - "owning_team": "virtuoso", - "Environment": "development", - "Department": "product", - "Product": "virtuoso" - }, - "resources": [ - { - "id": "host1", - "provider": "aws", - "type": "ec2", - "size": "t3.micro", - "ami_name": "RHEL_HA-7.?_HVM-????????-x86_64-?-Hourly2-GP2" - } - ], - "instrumentations": { - "resources": [ - { - "id": "nr_super_agent", - "resource_ids": ["host1"], - "provider": "newrelic", - "source_repository": "https://github.com/newrelic/open-install-library.git", - "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+\\(installed\\)", - "recipe_targeted": "super-agent", - "use_organization_id": true - } - } - ] - } -} diff --git a/test/definitions/super-agent/rhel/centos7-super-agent.json b/test/definitions/super-agent/rhel/centos7-super-agent.json deleted file mode 100644 index 727d8cdf..00000000 --- a/test/definitions/super-agent/rhel/centos7-super-agent.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "global_tags": { - "owning_team": "virtuoso", - "Environment": "development", - "Department": "product", - "Product": "virtuoso" - }, - "resources": [ - { - "id": "host1", - "provider": "aws", - "type": "ec2", - "size": "t3.nano", - "ami_name": "CentOS-7-????-????????_?.x86_64-*", - "user_name": "centos" - } - ], - "instrumentations": { - "resources": [ - { - "id": "nr_super_agent", - "resource_ids": ["host1"], - "provider": "newrelic", - "source_repository": "https://github.com/newrelic/open-install-library.git", - "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+\\(installed\\)", - "recipe_targeted": "super-agent", - "use_organization_id": true - } - } - ] - } -} diff --git a/test/definitions/super-agent/rhel/redhat7-super-agent.json b/test/definitions/super-agent/rhel/redhat7-super-agent.json deleted file mode 100644 index e8b04c1e..00000000 --- a/test/definitions/super-agent/rhel/redhat7-super-agent.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "global_tags": { - "owning_team": "virtuoso", - "Environment": "development", - "Department": "product", - "Product": "virtuoso" - }, - "resources": [ - { - "id": "host1", - "provider": "aws", - "type": "ec2", - "size": "t3.micro", - "ami_name": "RHEL_HA-7.?_HVM-????????-x86_64-?-Hourly2-GP2" - } - ], - "instrumentations": { - "resources": [ - { - "id": "nr_super_agent", - "resource_ids": ["host1"], - "provider": "newrelic", - "source_repository": "https://github.com/newrelic/open-install-library.git", - "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+\\(installed\\)", - "recipe_targeted": "super-agent", - "use_organization_id": true - } - } - ] - } -}