Skip to content

New Relic Role for Ansible to install and configure the New Relic Server Agent

License

Notifications You must be signed in to change notification settings

UserScape/ansible-newrelic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-newrelic

This ansible role installs and configures the New Relic Server Agent (System Monitor Daemon)

Requirements

This role requires Ansible 1.4 higher and platforms listed in the metadata file.

Role Variables

The variables that can be passed to this role and a brief description about them are as follows

# License key
newrelic_license_key: ab2fa361cd4d0d373833cad619d7bcc424d27c16

# Log level (error, warning, info, verbose, debug, verbosedebug)
newrelic_loglevel: info

# Log file location
newrelic_logfile: /var/log/newrelic/nrsysmond.log

# Proxy server. Default False
newrelic_proxy: fred:[email protected]:8181

# Use SSL for all communication. Default False
newrelic_ssl: "true"

# SSL CA Bundle path. Default False
newrelic_ssl_ca_bundle: /etc/pki/tls/certs/ca-bundle.crt

# SSL CA Path. Default False
newrelic_ssl_ca_path: /etc/ssl/certs

# Pid file locaiton
newrelic_pidfile: /var/run/newrelic/nrsysmond.pid

# Collector hostname
newrelic_collector_host: collector.newrelic.com

# Connection timeout for collector host
newrelic_timeout: 30

Examples

Paramaterized Role

---
- hosts: all
  roles:
    - { role: newrelic, newrelic_license_key: ab2fa361cd4d0d373833cad619d7bcc424d27c16 }

Vars

---
- hosts: all
  vars:
    newrelic_license_key: ab2fa361cd4d0d373833cad619d7bcc424d27c16
  roles:
    - newrelic

Group vars

group_vars/production

---
newrelic_license_key: ab2fa361cd4d0d373833cad619d7bcc424d27c16

site.yml

---
- hosts: all
  roles:
    - newrelic

About

New Relic Role for Ansible to install and configure the New Relic Server Agent

Resources

License

Stars

Watchers

Forks

Packages

No packages published