Skip to content

Commit 694526b

Browse files
committed
Modify super-agent's infra-agent config to use the new flag is_integrations_only.
1 parent 5513bce commit 694526b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ install:
183183
sed -i "/^license_key/d" /etc/newrelic-infra.yml
184184
sed -i '/^custom_attributes:/,/^\S/{ /^\S/!d }' /etc/newrelic-infra.yml
185185
sed -i '/^custom_attributes:/d' /etc/newrelic-infra.yml
186-
sed -i "/^is_secure_forward_only/d" /etc/newrelic-infra.yml
186+
sed -i "/^is_integrations_only/d" /etc/newrelic-infra.yml
187187
188188
if [ "{{.NR_SA_MIGRATE_INFRA_CONFIG}}" == "true" ] || [ "{{.NEW_RELIC_ASSUME_YES}}" == "true" ] ; then
189189
touch /etc/newrelic-infra-do-migrate
@@ -430,7 +430,7 @@ install:
430430
cmds:
431431
- |
432432
if [ "{{.NR_CLI_HOST_MONITORING_SOURCE}}" = "otel" ]; then
433-
echo 'is_secure_forward_only: true' >> /etc/newrelic-infra.yml
433+
echo 'is_integrations_only: true' >> /etc/newrelic-infra.yml
434434
mkdir -p /etc/newrelic-super-agent/fleet/agents.d/nr-otel-collector/values
435435
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
436436
else

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ install:
196196
sed -i "/^license_key/d" /etc/newrelic-infra.yml
197197
sed -i '/^custom_attributes:/,/^\S/{ /^\S/!d }' /etc/newrelic-infra.yml
198198
sed -i '/^custom_attributes:/d' /etc/newrelic-infra.yml
199-
sed -i "/^is_secure_forward_only/d" /etc/newrelic-infra.yml
199+
sed -i "/^is_integrations_only/d" /etc/newrelic-infra.yml
200200
201201
if [ "{{.NR_SA_MIGRATE_INFRA_CONFIG}}" == "true" ] || [ "{{.NEW_RELIC_ASSUME_YES}}" == "true" ] ; then
202202
touch /etc/newrelic-infra-do-migrate
@@ -371,7 +371,7 @@ install:
371371
cmds:
372372
- |
373373
if [ "{{.NR_CLI_HOST_MONITORING_SOURCE}}" = "otel" ]; then
374-
echo 'is_secure_forward_only: true' >> /etc/newrelic-infra.yml
374+
echo 'is_integrations_only: true' >> /etc/newrelic-infra.yml
375375
mkdir -p /etc/newrelic-super-agent/fleet/agents.d/nr-otel-collector/values
376376
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
377377
else

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ install:
155155
sed -i "/^license_key/d" /etc/newrelic-infra.yml
156156
sed -i '/^custom_attributes:/,/^\S/{ /^\S/!d }' /etc/newrelic-infra.yml
157157
sed -i '/^custom_attributes:/d' /etc/newrelic-infra.yml
158-
sed -i "/^is_secure_forward_only/d" /etc/newrelic-infra.yml
158+
sed -i "/^is_integrations_only/d" /etc/newrelic-infra.yml
159159
160160
if [ "{{.NR_SA_MIGRATE_INFRA_CONFIG}}" == "true" ] || [ "{{.NEW_RELIC_ASSUME_YES}}" == "true" ] ; then
161161
touch /etc/newrelic-infra-do-migrate
@@ -321,7 +321,7 @@ install:
321321
cmds:
322322
- |
323323
if [ "{{.NR_CLI_HOST_MONITORING_SOURCE}}" = "otel" ]; then
324-
echo 'is_secure_forward_only: true' >> /etc/newrelic-infra.yml
324+
echo 'is_integrations_only: true' >> /etc/newrelic-infra.yml
325325
mkdir -p /etc/newrelic-super-agent/fleet/agents.d/nr-otel-collector/values
326326
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
327327
else

0 commit comments

Comments
 (0)