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-infra
package repository source - Installs|upgrades|removes
newrelic-infra
package - Sets up the
newrelic-infra
agent service - Sets the
newrelic-infra.yml
config 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-infra
package 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-infra
package version to pin.
- Add the
newrelic-infra
cookbook dependency to yourmetadata.rb
orBerksfile
- Set
node['newrelic-infra']['license_key']
attribute with your New Relic license key - Include
default
recipe or add it to your run list
Copyright (c) 2016 New Relic, Inc. All rights reserved.