Skip to content

newrelic/puppet-install

New Relic Open Source community project banner.

New Relic Puppet module

newrelic-newrelic_installer is a Puppet module that will help you scale your New Relic Observability efforts. It uses the New Relic CLI and New Relic Open Installation repository to achieve this.

Currently, we have included Linux and Windows support for New Relic's Infrastructure and Logs integrations, with more agents and integrations following in the near future.

Note: Installing specific versions of an agent is not supported, this role will always install latest released version of a New Relic agent.

Installation

Puppet Forge

puppet module install newrelic-newrelic_installer

View more installation options on PuppetForge

Manual

sudo puppet module install ~/newrelic-newrelic_installer-0.1.0.tar.gz
Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/etc/puppetlabs/code/environments/production/modules
└─┬ newrelic-newrelic_installer (v0.1.0)
  ├── lwf-remote_file (v1.1.3)
  └── puppetlabs-powershell (v5.2.0)

Getting Started

To use this module, you'll need to instantiate the ::install class, specifying an instrumentation target and some New Relic account-specific details. For example:

# /etc/puppetlabs/code/environments/<YOUR_ENVIRONMENT>/manifests/site.pp
class { 'newrelic_installer::install':
          targets               => ["infrastructure", "logs", "php", "dotnet"],
          environment_variables => {
            "NEW_RELIC_API_KEY"          => "<YOUR-NR-API-KEY>",
            "NEW_RELIC_ACCOUNT_ID"       => <YOUR-NR-ACCOUNT-ID>,
            "NEW_RELIC_REGION"           => "<US|EU>",
            "NEW_RELIC_APPLICATION_NAME" => "<YOUR-PHP-APPLICATION-NAME>"
          }
}

Parameters

targets [String]

Specifies target to be instrumented with New Relic Supported values include:

  • 'infrastructure' - New Relic Infrastructure Agent
  • 'logs' - Logs integration for New Relic Infrastructure Agent. *requires 'infrastructure'
  • 'php' - New Relic PHP APM Agent
  • 'dotnet' - New Relic .Net APM Agent
  • 'nodejs' - New Relic Node APM Agent

environment_variables Hash

Hash of environment variables to set prior to execution.

  • NEW_RELIC_API_KEY: your New Relic API key *required
  • NEW_RELIC_ACCOUNT_ID: your New Relic account id *required
  • NEW_RELIC_REGION: your New Relic account's region (US or EU). Defaults to US if not specified
  • NEW_RELIC_APPLICATION_NAME: used by 'php'. This config option sets the application name that data is reported under in APM. Defaults to 'PHP Application' if not specified.

verbosity String (optional)

Specifies command output verbosity Supported values include

  • debug
  • trace

tags Hash (optional)

Hash of tags associated with entities instrumented with New Relic. Examples:

  • {'key-name' => 'value', 'foo' => 'bar'}

proxy String (optional)

Sets the proxy server the agent should use. Examples:

  • https://myproxy.foo.com:8080
  • http://10.10.254.254

install_timeout_seconds Integer (optional)

Sets the timeout in seconds for New Relic installations. Default is 600

Support

New Relic hosts and moderates an online forum where customers can interact with New Relic employees as well as other customers to get help and share best practices. Like all official New Relic open source projects, there's a related Community topic in the New Relic Explorers Hub. You can find this project's topic/threads here:

Contribute

We encourage your contributions to improve the newrelic_installer Puppet module! Keep in mind that when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project.

If you have any questions, or to execute our corporate CLA (which is required if your contribution is on behalf of a company), drop us an email at opensource@newrelic.com.

A note about vulnerabilities

As noted in our security policy, New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.

If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through HackerOne.

If you would like to contribute to this project, review these guidelines.

License

This project is licensed under the Apache 2.0 License.

About

New Relic installation module for customers who are using Puppet to configure their infrastructure at scale

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published