Skip to content

Commit

Permalink
feat: rename opamp option to fleet_control
Browse files Browse the repository at this point in the history
  • Loading branch information
DavSanchez committed Dec 16, 2024
1 parent 909e2c7 commit 0a1c479
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions recipes/newrelic/infrastructure/agent-control/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_agent_control_auth
- task: config_host_monitoring
- task: update_otel_mem_limit
Expand Down Expand Up @@ -450,16 +450,16 @@ install:
sed -i 's/fleet_id: FLEET_ID_HERE/fleet_id: {{.NR_CLI_FLEET_ID}}/g' /etc/newrelic-agent-control/config.yaml
fi
config_opamp:
config_fleet_control:
status:
- test -f /etc/newrelic-agent-control/.nr-cli
cmds:
- |
if [ "{{.NEW_RELIC_AGENT_CONTROL_FLEET_ENABLED}}" = "false" ]; then
sed -i '/^\s*opamp:/s/^/#/' /etc/newrelic-agent-control/config.yaml
sed -i '/^\s*fleet_control:/s/^/#/' /etc/newrelic-agent-control/config.yaml
sed -i '/^\s*endpoint: https:\/\/opamp/s/^/#/' /etc/newrelic-agent-control/config.yaml
else
sed -i 's/s*#\s*opamp:/opamp:/g' /etc/newrelic-agent-control/config.yaml
sed -i 's/s*#\s*fleet_control:/fleet_control:/g' /etc/newrelic-agent-control/config.yaml
sed -i '/^\s*#\s*endpoint: https:\/\/opamp/s/# //' /etc/newrelic-agent-control/config.yaml
fi
- |
Expand Down
8 changes: 4 additions & 4 deletions recipes/newrelic/infrastructure/agent-control/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_agent_control_auth
- task: config_host_monitoring
- task: update_otel_mem_limit
Expand Down Expand Up @@ -393,16 +393,16 @@ install:
sed -i 's/fleet_id: FLEET_ID_HERE/fleet_id: {{.NR_CLI_FLEET_ID}}/g' /etc/newrelic-agent-control/config.yaml
fi
config_opamp:
config_fleet_control:
status:
- test -f /etc/newrelic-agent-control/.nr-cli
cmds:
- |
if [ "{{.NEW_RELIC_AGENT_CONTROL_FLEET_ENABLED}}" = "false" ]; then
sed -i '/^\s*opamp:/s/^/#/' /etc/newrelic-agent-control/config.yaml
sed -i '/^\s*fleet_control:/s/^/#/' /etc/newrelic-agent-control/config.yaml
sed -i '/^\s*endpoint: https:\/\/opamp/s/^/#/' /etc/newrelic-agent-control/config.yaml
else
sed -i 's/s*#\s*opamp:/opamp:/g' /etc/newrelic-agent-control/config.yaml
sed -i 's/s*#\s*fleet_control:/fleet_control:/g' /etc/newrelic-agent-control/config.yaml
sed -i '/^\s*#\s*endpoint: https:\/\/opamp/s/# //' /etc/newrelic-agent-control/config.yaml
fi
- |
Expand Down
8 changes: 4 additions & 4 deletions recipes/newrelic/infrastructure/agent-control/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_agent_control_auth
- task: config_host_monitoring
- task: update_otel_mem_limit
Expand Down Expand Up @@ -340,16 +340,16 @@ install:
sed -i 's/fleet_id: FLEET_ID_HERE/fleet_id: {{.NR_CLI_FLEET_ID}}/g' /etc/newrelic-agent-control/config.yaml
fi
config_opamp:
config_fleet_control:
status:
- test -f /etc/newrelic-agent-control/.nr-cli
cmds:
- |
if [ "{{.NEW_RELIC_AGENT_CONTROL_FLEET_ENABLED}}" = "false" ]; then
sed -i '/^\s*opamp:/s/^/#/' /etc/newrelic-agent-control/config.yaml
sed -i '/^\s*fleet_control:/s/^/#/' /etc/newrelic-agent-control/config.yaml
sed -i '/^\s*endpoint: https:\/\/opamp/s/^/#/' /etc/newrelic-agent-control/config.yaml
else
sed -i 's/s*#\s*opamp:/opamp:/g' /etc/newrelic-agent-control/config.yaml
sed -i 's/s*#\s*fleet_control:/fleet_control:/g' /etc/newrelic-agent-control/config.yaml
sed -i '/^\s*#\s*endpoint: https:\/\/opamp/s/# //' /etc/newrelic-agent-control/config.yaml
fi
- |
Expand Down

0 comments on commit 0a1c479

Please sign in to comment.