newrelic / newrelic-cli

The New Relic Command Line Interface
https://developer.newrelic.com/explore-docs/newrelic-cli
Apache License 2.0
125 stars 70 forks source link

feat(super-agent): Skip core bundle if installed #1604

Closed NSSPKrishna closed 1 month ago

NSSPKrishna commented 2 months ago

This pull request uses the CLI functionality to detect the presence of the Super Agent on the host. If detected, it will install OHI with the Super Agent dependency, skipping the core bundle installation. If core recipes are targeted for installation, they will be unsupported since the Super Agent is already installed. (Associated PR: https://github.com/newrelic/open-install-library/pull/1072)

NSSPKrishna commented 2 months ago

Updated the status of the core bundle to NULL from UNSUPPORTED when a super agent is installed, as suggested by @sanderblue. This modification enables easier tracking of installs, particularly in scenarios where a super agent is present.