Skip to content

Commit

Permalink
feat(agent-control): rename opamp option to fleet_control
Browse files Browse the repository at this point in the history
  • Loading branch information
DavSanchez authored and rubenruizdegauna committed Dec 18, 2024
1 parent c53d6ac commit 47186b6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions recipes/newrelic/infrastructure/super-agent/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -438,13 +438,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
Expand Down
8 changes: 4 additions & 4 deletions recipes/newrelic/infrastructure/super-agent/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -381,16 +381,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
- |
Expand Down
8 changes: 4 additions & 4 deletions recipes/newrelic/infrastructure/super-agent/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -328,16 +328,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
- |
Expand Down

0 comments on commit 47186b6

Please sign in to comment.