Ansible role which installs New Relic Platform Installer (npi) and adds npi ansible module.
- Tested on Ansible 1.9.
newrelic_license_key: YOUR_LICENSE_KEY
newrelic_npi_platform: debian
newrelic_npi_arch: x64
Manages npi packages.
- Bash
- npi (installed by newrelic-npi role)
parameter | required | default | choices | comments |
---|---|---|---|---|
name | yes | npi package name, ex. - com.newrelic.plugins.mysql.instance | ||
state | no | present | present,absent | should the package be installed or removed |
config | no | package.json config file contents |
- name: install newrelic mysql module
hosts: mysql
tasks:
- npi: name=com.newrelic.plugins.mysql.instance state=present config='{"agents":[{"name":"My Ansible-managed database","host":"localhost","metrics":"status,newrelic","user":"","passwd":""}]}'
- name: remove newrelic mysql module
hosts: mysql
tasks:
- npi: name=com.newrelic.plugins.mysql.instance state=absent
Licensed under the BSD License. See the LICENSE file for details.
Are welcome!