diff --git a/recipes/newrelic/infrastructure/super-agent/debian.yml b/recipes/newrelic/infrastructure/super-agent/debian.yml index bd31d9a9f..a6b13c439 100644 --- a/recipes/newrelic/infrastructure/super-agent/debian.yml +++ b/recipes/newrelic/infrastructure/super-agent/debian.yml @@ -326,7 +326,7 @@ install: fi - | if [ "{{.NEW_RELIC_REGION}}" = "STAGING" ]; then - echo 'OTEL_EXPORTER_OTLP_ENDPOINT=staging-otlp.nr-data.net:4317' >> /etc/newrelic-super-agent/newrelic-super-agent.conf + echo 'otel_exporter_otlp_endpoint: "staging-otlp.nr-data.net:4317"' >> /etc/newrelic-super-agent/nrdot-values.yaml elif [ "{{.NEW_RELIC_REGION}}" = "EU" ]; then echo 'OTEL_EXPORTER_OTLP_ENDPOINT=otlp.eu01.nr-data.net:4317' >> /etc/newrelic-super-agent/newrelic-super-agent.conf else @@ -356,6 +356,9 @@ install: else sed -i '/^\s*#\s*nr_otel_collector:/s/#//' /etc/newrelic-super-agent/config.yaml sed -i '/^\s*#\s*agent_type: "newrelic\/io\.opentelemetry\.collector/s/#//' /etc/newrelic-super-agent/config.yaml + if [ "{{.NEW_RELIC_REGION}}" = "STAGING" ]; then + sed -i 's/nr_otel_collector:/nr_otel_collector:\n values_file: "\/etc\/newrelic-super-agent\/nrdot-values\.yaml"/' /etc/newrelic-super-agent/config.yaml + fi fi config_opamp: @@ -427,4 +430,4 @@ install: post_install: info: |2 - ⚙️ The New Relic Super Agent configuration file can be found in /etc/newrelic-super-agent/config.yaml \ No newline at end of file + ⚙️ 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 7622aac11..402031c12 100644 --- a/recipes/newrelic/infrastructure/super-agent/rhel.yml +++ b/recipes/newrelic/infrastructure/super-agent/rhel.yml @@ -262,7 +262,7 @@ install: fi - | if [ "{{.NEW_RELIC_REGION}}" = "STAGING" ]; then - echo 'OTEL_EXPORTER_OTLP_ENDPOINT=staging-otlp.nr-data.net:4317' >> /etc/newrelic-super-agent/newrelic-super-agent.conf + echo 'otel_exporter_otlp_endpoint: "staging-otlp.nr-data.net:4317"' >> /etc/newrelic-super-agent/nrdot-values.yaml elif [ "{{.NEW_RELIC_REGION}}" = "EU" ]; then echo 'OTEL_EXPORTER_OTLP_ENDPOINT=otlp.eu01.nr-data.net:4317' >> /etc/newrelic-super-agent/newrelic-super-agent.conf else @@ -292,6 +292,9 @@ install: else sed -i '/^\s*#\s*nr_otel_collector:/s/#//' /etc/newrelic-super-agent/config.yaml sed -i '/^\s*#\s*agent_type: "newrelic\/io\.opentelemetry\.collector/s/#//' /etc/newrelic-super-agent/config.yaml + if [ "{{.NEW_RELIC_REGION}}" = "STAGING" ]; then + sed -i 's/nr_otel_collector:/nr_otel_collector:\n values_file: "\/etc\/newrelic-super-agent\/nrdot-values\.yaml"/' /etc/newrelic-super-agent/config.yaml + fi fi config_opamp: diff --git a/recipes/newrelic/infrastructure/super-agent/suse.yml b/recipes/newrelic/infrastructure/super-agent/suse.yml index fb67f42a7..5a1922391 100644 --- a/recipes/newrelic/infrastructure/super-agent/suse.yml +++ b/recipes/newrelic/infrastructure/super-agent/suse.yml @@ -216,7 +216,7 @@ install: fi - | if [ "{{.NEW_RELIC_REGION}}" = "STAGING" ]; then - echo 'OTEL_EXPORTER_OTLP_ENDPOINT=staging-otlp.nr-data.net:4317' >> /etc/newrelic-super-agent/newrelic-super-agent.conf + echo 'otel_exporter_otlp_endpoint: "staging-otlp.nr-data.net:4317"' >> /etc/newrelic-super-agent/nrdot-values.yaml elif [ "{{.NEW_RELIC_REGION}}" = "EU" ]; then echo 'OTEL_EXPORTER_OTLP_ENDPOINT=otlp.eu01.nr-data.net:4317' >> /etc/newrelic-super-agent/newrelic-super-agent.conf else @@ -246,6 +246,9 @@ install: else sed -i '/^\s*#\s*nr_otel_collector:/s/#//' /etc/newrelic-super-agent/config.yaml sed -i '/^\s*#\s*agent_type: "newrelic\/io\.opentelemetry\.collector/s/#//' /etc/newrelic-super-agent/config.yaml + if [ "{{.NEW_RELIC_REGION}}" = "STAGING" ]; then + sed -i 's/nr_otel_collector:/nr_otel_collector:\n values_file: "\/etc\/newrelic-super-agent\/nrdot-values\.yaml"/' /etc/newrelic-super-agent/config.yaml + fi fi config_opamp: diff --git a/test/definitions-eu/super-agent/debians/debian10-super-agent.json b/test/definitions-eu/super-agent/debians/debian10-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/debians/debian10-super-agent.json rename to test/definitions-eu/super-agent/debians/debian10-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/debians/debian10arm64-super-agent.json b/test/definitions-eu/super-agent/debians/debian10arm64-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/debians/debian10arm64-super-agent.json rename to test/definitions-eu/super-agent/debians/debian10arm64-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/debians/debian11-super-agent.json b/test/definitions-eu/super-agent/debians/debian11-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/debians/debian11-super-agent.json rename to test/definitions-eu/super-agent/debians/debian11-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/debians/ubuntu16-super-agent.json b/test/definitions-eu/super-agent/debians/ubuntu16-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/debians/ubuntu16-super-agent.json rename to test/definitions-eu/super-agent/debians/ubuntu16-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/debians/ubuntu18-super-agent.json b/test/definitions-eu/super-agent/debians/ubuntu18-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/debians/ubuntu18-super-agent.json rename to test/definitions-eu/super-agent/debians/ubuntu18-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/debians/ubuntu20-super-agent.json b/test/definitions-eu/super-agent/debians/ubuntu20-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/debians/ubuntu20-super-agent.json rename to test/definitions-eu/super-agent/debians/ubuntu20-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/debians/ubuntu20arm64-super-agent.json b/test/definitions-eu/super-agent/debians/ubuntu20arm64-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/debians/ubuntu20arm64-super-agent.json rename to test/definitions-eu/super-agent/debians/ubuntu20arm64-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/debians/ubuntu22-super-agent.json b/test/definitions-eu/super-agent/debians/ubuntu22-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/debians/ubuntu22-super-agent.json rename to test/definitions-eu/super-agent/debians/ubuntu22-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/logs/amazonlinux2-super-agent-logs.json b/test/definitions-eu/super-agent/logs/amazonlinux2-super-agent-logs-eu.json similarity index 100% rename from test/definitions-eu/super-agent/logs/amazonlinux2-super-agent-logs.json rename to test/definitions-eu/super-agent/logs/amazonlinux2-super-agent-logs-eu.json diff --git a/test/definitions-eu/super-agent/logs/amazonlinux2023-super-agent-logs.json b/test/definitions-eu/super-agent/logs/amazonlinux2023-super-agent-logs-eu.json similarity index 100% rename from test/definitions-eu/super-agent/logs/amazonlinux2023-super-agent-logs.json rename to test/definitions-eu/super-agent/logs/amazonlinux2023-super-agent-logs-eu.json diff --git a/test/definitions-eu/super-agent/logs/debian11-super-agent-logs.json b/test/definitions-eu/super-agent/logs/debian11-super-agent-logs-eu.json similarity index 100% rename from test/definitions-eu/super-agent/logs/debian11-super-agent-logs.json rename to test/definitions-eu/super-agent/logs/debian11-super-agent-logs-eu.json diff --git a/test/definitions-eu/super-agent/logs/redhat8-super-agent-logs.json b/test/definitions-eu/super-agent/logs/redhat8-super-agent-logs-eu.json similarity index 100% rename from test/definitions-eu/super-agent/logs/redhat8-super-agent-logs.json rename to test/definitions-eu/super-agent/logs/redhat8-super-agent-logs-eu.json diff --git a/test/definitions-eu/super-agent/logs/redhat9-super-agent-logs.json b/test/definitions-eu/super-agent/logs/redhat9-super-agent-logs-eu.json similarity index 100% rename from test/definitions-eu/super-agent/logs/redhat9-super-agent-logs.json rename to test/definitions-eu/super-agent/logs/redhat9-super-agent-logs-eu.json diff --git a/test/definitions-eu/super-agent/logs/suse154-super-agent-logs.json b/test/definitions-eu/super-agent/logs/suse154-super-agent-logs-eu.json similarity index 100% rename from test/definitions-eu/super-agent/logs/suse154-super-agent-logs.json rename to test/definitions-eu/super-agent/logs/suse154-super-agent-logs-eu.json diff --git a/test/definitions-eu/super-agent/logs/ubuntu20-super-agent-logs.json b/test/definitions-eu/super-agent/logs/ubuntu20-super-agent-logs-eu.json similarity index 100% rename from test/definitions-eu/super-agent/logs/ubuntu20-super-agent-logs.json rename to test/definitions-eu/super-agent/logs/ubuntu20-super-agent-logs-eu.json diff --git a/test/definitions-eu/super-agent/logs/ubuntu22-super-agent-logs.json b/test/definitions-eu/super-agent/logs/ubuntu22-super-agent-logs-eu.json similarity index 100% rename from test/definitions-eu/super-agent/logs/ubuntu22-super-agent-logs.json rename to test/definitions-eu/super-agent/logs/ubuntu22-super-agent-logs-eu.json diff --git a/test/definitions-eu/super-agent/rhel/awslinux23-super-agent.json b/test/definitions-eu/super-agent/rhel/awslinux23-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/rhel/awslinux23-super-agent.json rename to test/definitions-eu/super-agent/rhel/awslinux23-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/rhel/awslinuxarm64-super-agent.json b/test/definitions-eu/super-agent/rhel/awslinuxarm64-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/rhel/awslinuxarm64-super-agent.json rename to test/definitions-eu/super-agent/rhel/awslinuxarm64-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/rhel/centos7-super-agent.json b/test/definitions-eu/super-agent/rhel/centos7-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/rhel/centos7-super-agent.json rename to test/definitions-eu/super-agent/rhel/centos7-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/rhel/centos8-super-agent.json b/test/definitions-eu/super-agent/rhel/centos8-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/rhel/centos8-super-agent.json rename to test/definitions-eu/super-agent/rhel/centos8-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/rhel/centos8arm64-super-agent.json b/test/definitions-eu/super-agent/rhel/centos8arm64-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/rhel/centos8arm64-super-agent.json rename to test/definitions-eu/super-agent/rhel/centos8arm64-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/rhel/redhat7-super-agent.json b/test/definitions-eu/super-agent/rhel/redhat7-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/rhel/redhat7-super-agent.json rename to test/definitions-eu/super-agent/rhel/redhat7-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/rhel/redhat8arm64-super-agent.json b/test/definitions-eu/super-agent/rhel/redhat8arm64-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/rhel/redhat8arm64-super-agent.json rename to test/definitions-eu/super-agent/rhel/redhat8arm64-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/suse/suse125-super-agent.json b/test/definitions-eu/super-agent/suse/suse125-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/suse/suse125-super-agent.json rename to test/definitions-eu/super-agent/suse/suse125-super-agent-eu.json diff --git a/test/definitions-eu/super-agent/suse/suse154-super-agent.json b/test/definitions-eu/super-agent/suse/suse154-super-agent-eu.json similarity index 100% rename from test/definitions-eu/super-agent/suse/suse154-super-agent.json rename to test/definitions-eu/super-agent/suse/suse154-super-agent-eu.json