Skip to content

unboxed/ansible-newrelic

 
 

Repository files navigation

Ansible Newrelic Role

Build Status Galaxy GitHub Tags GitHub Stars

newrelic is an ansible role which:

  • installs newrelic
  • configures newrelic
  • configures service

Installation

Using ansible-galaxy:

$ ansible-galaxy install franklinkim.newrelic

Using requirements.yml:

- src: franklinkim.newrelic

Using git:

$ git clone https://github.com/weareinteractive/ansible-newrelic.git franklinkim.newrelic

Dependencies

  • Ansible >= 1.9

Variables

Here is a list of all the default variables for this role, which are also available in defaults/main.yml.

# newrelic_license_key: yourkey

# user name
newrelic_user: newrelic
# Name of the file where the server monitor will store it's log messages.
newrelic_logfile: /var/log/newrelic/nrsysmond.log
# Level of detail you want in the log file
newrelic_loglevel: info
# Set to true to disable NFS client statistics gathering.
newrelic_disable_nfs: no
# Set to true to disable Docker container statistics gathering.
newrelic_disable_docker: no
# start on boot
newrelic_service_enabled: yes
# current state: started, stopped
newrelic_service_state: started

Handlers

These are the handlers that are defined in handlers/main.yml.

  • restart newrelic

Example playbook

- hosts: all
  sudo: yes
  roles:
    - franklinkim.newrelic
  vars:
    newrelic_license_key: yes
    newrelic_service_state: started
    newrelic_license_key: ab2fa361cd4d0d373833cad619d7bcc424d27c16

Testing

$ git clone https://github.com/weareinteractive/ansible-newrelic.git
$ cd ansible-newrelic
$ vagrant up

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Copyright (c) We Are Interactive under the MIT license.

About

Ansible role which installs and configures New Relic Server Monitoring Daemon

Resources

License

Stars

Watchers

Forks

Packages

No packages published