franklinkim.php5-newrelic
is an Ansible role which:
- installs newrelic php agent
- configures newrelic php agent
Note: Tests are failing due to invalid key
Using ansible-galaxy
:
$ ansible-galaxy install franklinkim.php5-newrelic
Using requirements.yml
:
- src: franklinkim.php5-newrelic
Using git
:
$ git clone https://github.com/weareinteractive/ansible-php5-newrelic.git franklinkim.php5-newrelic
- Ansible >= 2.0
Here is a list of all the default variables for this role, which are also available in defaults/main.yml
.
---
# newrelic_license_key: yourkey
# Sets the name of the file to send log messages to.
php5_newrelic_logfile: /var/log/newrelic/php_agent.log
# Sets the level of detail to include in the log file.
php5_newrelic_loglevel: info
# Sets the name of the file to send daemon log messages to.
php5_newrelic_daemon_logfile: /var/log/newrelic/newrelic-daemon.log
# Sets the level of detail to include in the daemon log.
php5_newrelic_daemon_loglevel: info
# Enables high security for all applications.
php5_newrelic_high_security: no
# Sets the name of the application that metrics will be reported into.
php5_newrelic_appname: myapp
# Sets the desination location of the newrelic.ini file
# Note: for php7 it's /etc/php/7.0/mods-available
php5_newrelic_config_dest: /etc/php5/mods-available
This is an example playbook:
---
- hosts: all
roles:
- weareinteractive.apt
- franklinkim.newrelic
- franklinkim.php5
- franklinkim.php5-newrelic
vars:
apt_repositories:
- 'ppa:ondrej/php5-oldstable'
newrelic_license_key: ab2fa361cd4d0d373833cad619d7bcc424d27c16
php5_newrelic_appname: "My App"
$ git clone https://github.com/weareinteractive/ansible-php5-newrelic.git
$ cd ansible-php5-newrelic
$ make test
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Note: To update the README.md
file please install and run ansible-role
:
$ gem install ansible-role
$ ansible-role docgen
Copyright (c) We Are Interactive under the MIT license.