Skip to content

unleashedtech/ansible-role-newrelic-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New Relic PHP Agent - Ansible Role

Ansible Role Build Status GitHub tag license

Installs New Relic PHP agent on Debian-based servers. Fully compatible with the geerlingguy.php role.

Requirements

Installation

Add this role to requirements.yml:

- src: unleashedtech.newrelic_php
  version: 1.1.0 # Check for latest version!

Run $ ansible-galaxy install -r requirements.yml to install this new role.

Role Variables

# New Relic License Key
## You should store this in an encrypted vault file!
## See: https://docs.newrelic.com/docs/accounts-partnerships/accounts/account-setup/license-key
newrelic_license_key: xxxxxxxxxxx

# Indicates the desired package state.
# `latest` ensures that the latest version is installed.
# `present` does not update if already installed.
# `absent` will remove the package and all configuration files
# Choices: present|latest|absent
# Default: latest
newrelic_php_package_state: present

# See https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration
newrelic_php_config:
  appname: "My Awesome App {{ env }}"
  transaction_tracer.detail: 1
  datastore_tracer.database_name_reporting.enabled: true

Limitations

  • Only one New Relic APM application per server

Pull requests are welcomed.

See Also

License

New Relic PHP Agent is released under the MIT License.