Skip to content

Commit

Permalink
fix(agent-control): rename Super Agent to Agent Control
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenruizdegauna authored and pranav-new-relic committed Dec 18, 2024
1 parent 6f947a6 commit 520d749
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/functions/newrelic_installer/targets_to_recipes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def targets_to_recipes(targets)
'php' => 'php-agent-installer',
'dotnet' => 'dotnet-agent-installer',
'nodejs' => 'node-agent-installer',
'super-agent' => 'super-agent',
'logs-super-agent' => 'logs-integration-super-agent'
'agent-control' => 'agent-control',
'logs-agent-control' => 'logs-integration-agent-control'
}
requires_infrastructure_set = Set['logs']

Expand Down
2 changes: 1 addition & 1 deletion spec/classes/install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def required_vars
context "installed with trace verbosity on #{os}" do
let(:facts) { os_facts }
let(:params) do
required_vars.merge({ 'targets' => ['super-agent'], 'verbosity' => 'trace', 'proxy' => '' })
required_vars.merge({ 'targets' => ['agent-control'], 'verbosity' => 'trace', 'proxy' => '' })
end

it { is_expected.to contain_exec('install newrelic instrumentation').with('command' => %r{(.*)--trace(.*)}) }
Expand Down
4 changes: 2 additions & 2 deletions spec/functions/targets_to_recipes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
describe 'newrelic_installer::targets_to_recipes' do
# single valid recipe - infrastructure
it { is_expected.to run.with_params(['infrastructure']).and_return('infrastructure-agent-installer') }
it { is_expected.to run.with_params(['super-agent']).and_return('super-agent') }
it { is_expected.to run.with_params(['logs-super-agent']).and_return('logs-integration-super-agent') }
it { is_expected.to run.with_params(['agent-control']).and_return('agent-control') }
it { is_expected.to run.with_params(['logs-agent-control']).and_return('logs-integration-agent-control') }
it { is_expected.to run.with_params(['php']).and_return('php-agent-installer') }
it { is_expected.to run.with_params(['dotnet']).and_return('dotnet-agent-installer') }
it { is_expected.to run.with_params(['nodejs']).and_return('node-agent-installer') }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class { 'newrelic_installer::install':
targets => ["super-agent"],
targets => ["agent-control"],
environment_variables => {
"NEW_RELIC_API_KEY" => "{{ nr_api_key }}",
"NEW_RELIC_ACCOUNT_ID" => {{ nr_account_id }},
Expand Down

0 comments on commit 520d749

Please sign in to comment.