This cookbook installs and configures the New Relic Infrastructure agent.
- RHEL
- CentOS 7
- CentOS 6
- Ubuntu
- 16 Xenial
- 14 Trusty
- 12 Precise
- Debian
- 10 Buster
- 9 Stretch
- 8 Jessie
- 7 Wheezy
- Chef 12+
- none
Include the default recipe to install and configure the New Relic Infrastructure agent.
The agent recipe will validate required attributes and do basic platform detection to decide which platform specific recipe to include.
The agent_linux recipe:
- Adds the
newrelic-infrapackage repository source - Installs|upgrades|removes
newrelic-infrapackage - Sets up the
newrelic-infraagent service - Sets the
newrelic-infra.ymlconfig file
(Available in the future)
See attributes/defaults.rb for default values.
node['newrelic-infra']['license_key']- Your New Relic license key.node['newrelic-infra']['agent_action']-newrelic-infrapackage actions. Values:'install': (Default) Installs package. If'agent_version'is specified, installs specific version.'upgrade': Installs package and/or ensures it's the latest version.'remove': Removes the package.
node['newrelic-infra']['agent_version']- Specifynewrelic-infrapackage version to pin.
- Add the
newrelic-infracookbook dependency to yourmetadata.rborBerksfile - Set
node['newrelic-infra']['license_key']attribute with your New Relic license key - Include
defaultrecipe or add it to your run list
Copyright (c) 2016 New Relic, Inc. All rights reserved.