From cb213a808c3b0476879aa5ebb6e3c0188787c435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20S=C3=A1nchez?= Date: Mon, 16 Dec 2024 17:28:28 +0000 Subject: [PATCH] feat: rename `opamp` option to `fleet_control` --- recipes/newrelic/infrastructure/super-agent/debian.yml | 6 +++--- recipes/newrelic/infrastructure/super-agent/rhel.yml | 8 ++++---- recipes/newrelic/infrastructure/super-agent/suse.yml | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/recipes/newrelic/infrastructure/super-agent/debian.yml b/recipes/newrelic/infrastructure/super-agent/debian.yml index c0cc2b82..c50a9399 100644 --- a/recipes/newrelic/infrastructure/super-agent/debian.yml +++ b/recipes/newrelic/infrastructure/super-agent/debian.yml @@ -85,7 +85,7 @@ install: - task: update_otel_license_key - task: config_supervisors - task: config_fleet_id - - task: config_opamp + - task: config_fleet_control - task: config_super_agent_auth - task: config_host_monitoring - task: update_otel_mem_limit @@ -450,13 +450,13 @@ install: sed -i 's/fleet_id: FLEET_ID_HERE/fleet_id: {{.NR_CLI_FLEET_ID}}/g' /etc/newrelic-super-agent/config.yaml fi - config_opamp: + config_fleet_control: status: - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NEW_RELIC_SUPER_AGENT_FLEET_ENABLED}}" = "false" ]; then - sed -i '/^\s*opamp:/s/^/#/' /etc/newrelic-super-agent/config.yaml + sed -i '/^\s*fleet_control:/s/^/#/' /etc/newrelic-super-agent/config.yaml sed -i '/^\s*endpoint: https:\/\/opamp/s/^/#/' /etc/newrelic-super-agent/config.yaml else sed -i 's/s*#\s*opamp:/opamp:/g' /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 04432cf5..bbaa2276 100644 --- a/recipes/newrelic/infrastructure/super-agent/rhel.yml +++ b/recipes/newrelic/infrastructure/super-agent/rhel.yml @@ -105,7 +105,7 @@ install: - task: update_otel_license_key - task: config_supervisors - task: config_fleet_id - - task: config_opamp + - task: config_fleet_control - task: config_super_agent_auth - task: config_host_monitoring - task: update_otel_mem_limit @@ -393,16 +393,16 @@ install: sed -i 's/fleet_id: FLEET_ID_HERE/fleet_id: {{.NR_CLI_FLEET_ID}}/g' /etc/newrelic-super-agent/config.yaml fi - config_opamp: + config_fleet_control: status: - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NEW_RELIC_SUPER_AGENT_FLEET_ENABLED}}" = "false" ]; then - sed -i '/^\s*opamp:/s/^/#/' /etc/newrelic-super-agent/config.yaml + sed -i '/^\s*fleet_control:/s/^/#/' /etc/newrelic-super-agent/config.yaml sed -i '/^\s*endpoint: https:\/\/opamp/s/^/#/' /etc/newrelic-super-agent/config.yaml else - sed -i 's/s*#\s*opamp:/opamp:/g' /etc/newrelic-super-agent/config.yaml + sed -i 's/s*#\s*fleet_control:/fleet_control:/g' /etc/newrelic-super-agent/config.yaml sed -i '/^\s*#\s*endpoint: https:\/\/opamp/s/# //' /etc/newrelic-super-agent/config.yaml fi - | diff --git a/recipes/newrelic/infrastructure/super-agent/suse.yml b/recipes/newrelic/infrastructure/super-agent/suse.yml index 3899efe9..38be7167 100644 --- a/recipes/newrelic/infrastructure/super-agent/suse.yml +++ b/recipes/newrelic/infrastructure/super-agent/suse.yml @@ -71,7 +71,7 @@ install: - task: update_otel_license_key - task: config_supervisors - task: config_fleet_id - - task: config_opamp + - task: config_fleet_control - task: config_super_agent_auth - task: config_host_monitoring - task: update_otel_mem_limit @@ -340,16 +340,16 @@ install: sed -i 's/fleet_id: FLEET_ID_HERE/fleet_id: {{.NR_CLI_FLEET_ID}}/g' /etc/newrelic-super-agent/config.yaml fi - config_opamp: + config_fleet_control: status: - test -f /etc/newrelic-super-agent/.nr-cli cmds: - | if [ "{{.NEW_RELIC_SUPER_AGENT_FLEET_ENABLED}}" = "false" ]; then - sed -i '/^\s*opamp:/s/^/#/' /etc/newrelic-super-agent/config.yaml + sed -i '/^\s*fleet_control:/s/^/#/' /etc/newrelic-super-agent/config.yaml sed -i '/^\s*endpoint: https:\/\/opamp/s/^/#/' /etc/newrelic-super-agent/config.yaml else - sed -i 's/s*#\s*opamp:/opamp:/g' /etc/newrelic-super-agent/config.yaml + sed -i 's/s*#\s*fleet_control:/fleet_control:/g' /etc/newrelic-super-agent/config.yaml sed -i '/^\s*#\s*endpoint: https:\/\/opamp/s/# //' /etc/newrelic-super-agent/config.yaml fi - |