diff --git a/recipes/newrelic/infrastructure/super-agent/debian.yml b/recipes/newrelic/infrastructure/super-agent/debian.yml index c49e7c303..de06e9a71 100644 --- a/recipes/newrelic/infrastructure/super-agent/debian.yml +++ b/recipes/newrelic/infrastructure/super-agent/debian.yml @@ -183,7 +183,7 @@ install: sed -i "/^license_key/d" /etc/newrelic-infra.yml sed -i '/^custom_attributes:/,/^\S/{ /^\S/!d }' /etc/newrelic-infra.yml sed -i '/^custom_attributes:/d' /etc/newrelic-infra.yml - sed -i "/^is_secure_forward_only/d" /etc/newrelic-infra.yml + sed -i "/^is_integrations_only/d" /etc/newrelic-infra.yml if [ "{{.NR_SA_MIGRATE_INFRA_CONFIG}}" == "true" ] || [ "{{.NEW_RELIC_ASSUME_YES}}" == "true" ] ; then touch /etc/newrelic-infra-do-migrate @@ -217,7 +217,7 @@ install: setup_infra_proxy: cmds: - | - if [ "{{.NR_CLI_INFRA_AGENT}}" != "false"] && [ ! -z "$HTTPS_PROXY" ]; then + if [ "{{.NR_CLI_INFRA_AGENT}}" != "false" ] && [ ! -z "$HTTPS_PROXY" ]; then sed -i "/^proxy/d" /etc/newrelic-infra.yml echo 'proxy: {{.HTTPS_PROXY}}' >> /etc/newrelic-infra.yml fi @@ -430,7 +430,7 @@ install: cmds: - | if [ "{{.NR_CLI_HOST_MONITORING_SOURCE}}" = "otel" ]; then - echo 'is_secure_forward_only: true' >> /etc/newrelic-infra.yml + echo 'is_integrations_only: true' >> /etc/newrelic-infra.yml mkdir -p /etc/newrelic-super-agent/fleet/agents.d/nr-otel-collector/values cp /etc/newrelic-super-agent/examples/values-nr-otel-collector-agent-linux-0.1.0.yaml /etc/newrelic-super-agent/fleet/agents.d/nr-otel-collector/values/values.yaml else diff --git a/recipes/newrelic/infrastructure/super-agent/rhel.yml b/recipes/newrelic/infrastructure/super-agent/rhel.yml index 165052256..05d8438d9 100644 --- a/recipes/newrelic/infrastructure/super-agent/rhel.yml +++ b/recipes/newrelic/infrastructure/super-agent/rhel.yml @@ -196,7 +196,7 @@ install: sed -i "/^license_key/d" /etc/newrelic-infra.yml sed -i '/^custom_attributes:/,/^\S/{ /^\S/!d }' /etc/newrelic-infra.yml sed -i '/^custom_attributes:/d' /etc/newrelic-infra.yml - sed -i "/^is_secure_forward_only/d" /etc/newrelic-infra.yml + sed -i "/^is_integrations_only/d" /etc/newrelic-infra.yml if [ "{{.NR_SA_MIGRATE_INFRA_CONFIG}}" == "true" ] || [ "{{.NEW_RELIC_ASSUME_YES}}" == "true" ] ; then touch /etc/newrelic-infra-do-migrate @@ -371,7 +371,7 @@ install: cmds: - | if [ "{{.NR_CLI_HOST_MONITORING_SOURCE}}" = "otel" ]; then - echo 'is_secure_forward_only: true' >> /etc/newrelic-infra.yml + echo 'is_integrations_only: true' >> /etc/newrelic-infra.yml mkdir -p /etc/newrelic-super-agent/fleet/agents.d/nr-otel-collector/values cp /etc/newrelic-super-agent/examples/values-nr-otel-collector-agent-linux-0.1.0.yaml /etc/newrelic-super-agent/fleet/agents.d/nr-otel-collector/values/values.yaml else diff --git a/recipes/newrelic/infrastructure/super-agent/suse.yml b/recipes/newrelic/infrastructure/super-agent/suse.yml index df29dc29a..afaca259b 100644 --- a/recipes/newrelic/infrastructure/super-agent/suse.yml +++ b/recipes/newrelic/infrastructure/super-agent/suse.yml @@ -155,7 +155,7 @@ install: sed -i "/^license_key/d" /etc/newrelic-infra.yml sed -i '/^custom_attributes:/,/^\S/{ /^\S/!d }' /etc/newrelic-infra.yml sed -i '/^custom_attributes:/d' /etc/newrelic-infra.yml - sed -i "/^is_secure_forward_only/d" /etc/newrelic-infra.yml + sed -i "/^is_integrations_only/d" /etc/newrelic-infra.yml if [ "{{.NR_SA_MIGRATE_INFRA_CONFIG}}" == "true" ] || [ "{{.NEW_RELIC_ASSUME_YES}}" == "true" ] ; then touch /etc/newrelic-infra-do-migrate @@ -321,7 +321,7 @@ install: cmds: - | if [ "{{.NR_CLI_HOST_MONITORING_SOURCE}}" = "otel" ]; then - echo 'is_secure_forward_only: true' >> /etc/newrelic-infra.yml + echo 'is_integrations_only: true' >> /etc/newrelic-infra.yml mkdir -p /etc/newrelic-super-agent/fleet/agents.d/nr-otel-collector/values cp /etc/newrelic-super-agent/examples/values-nr-otel-collector-agent-linux-0.1.0.yaml /etc/newrelic-super-agent/fleet/agents.d/nr-otel-collector/values/values.yaml else diff --git a/test/definitions/super-agent/rhel/centos8-super-agent.json b/test/definitions/super-agent/rhel/centos8-super-agent.json index beb778b14..38323b04f 100644 --- a/test/definitions/super-agent/rhel/centos8-super-agent.json +++ b/test/definitions/super-agent/rhel/centos8-super-agent.json @@ -17,6 +17,15 @@ "instrumentations": { "resources": [ + { + "id": "nr_infra_setup", + "resource_ids": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/shell/roles", + "params": { + "step_prepare": "sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && sed -i '|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*" + } + }, { "id": "nr_super_agent", "resource_ids": ["host1"], diff --git a/test/definitions/super-agent/rhel/centos8arm64-super-agent.json b/test/definitions/super-agent/rhel/centos8arm64-super-agent.json index dfd0463b3..5ffef39eb 100644 --- a/test/definitions/super-agent/rhel/centos8arm64-super-agent.json +++ b/test/definitions/super-agent/rhel/centos8arm64-super-agent.json @@ -17,6 +17,15 @@ "instrumentations": { "resources": [ + { + "id": "nr_infra_setup", + "resource_ids": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/shell/roles", + "params": { + "step_prepare": "sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && sed -i '|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*" + } + }, { "id": "nr_super_agent", "resource_ids": ["host1"],