├── .ansible-lint ├── .clog.toml ├── .editorconfig ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── defaults └── main.yml ├── meta ├── main.yml └── readme.yml ├── tasks ├── config.yml ├── install.yml └── main.yml ├── templates └── etc │ └── php5 │ └── mods-available │ └── newrelic.ini.j2 └── tests └── main.yml /.ansible-lint: -------------------------------------------------------------------------------- 1 | exclude_paths: 2 | - ./meta/readme.yml 3 | -------------------------------------------------------------------------------- /.clog.toml: -------------------------------------------------------------------------------- 1 | [clog] 2 | changelog = "CHANGELOG.md" 3 | repository = "https://github.com/weareinteractive/ansible-php5-newrelic" 4 | from-latest-tag = true 5 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # editorconfig.org 4 | 5 | root = true 6 | 7 | [*] 8 | # Change these settings to your own preference 9 | indent_size = 2 10 | indent_style = space 11 | 12 | # We recommend you to keep these unchanged 13 | charset = utf-8 14 | end_of_line = lf 15 | insert_final_newline = true 16 | trim_trailing_whitespace = true 17 | 18 | [Makefile] 19 | indent_style = tab 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | *.retry 3 | .DS_Store 4 | .vagrant 5 | .vscode 6 | .idea 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | --- 2 | sudo: required 3 | language: python 4 | services: 5 | - docker 6 | env: 7 | global: 8 | - role: weareinteractive.php5-newrelic 9 | matrix: 10 | - distribution: Ubuntu 11 | distribution_version: "14.04" 12 | init: /sbin/init 13 | run_opts: "" 14 | - distribution: Ubuntu 15 | distribution_version: "12.04" 16 | init: /sbin/init 17 | run_opts: "" 18 | 19 | before_install: 20 | - sudo apt-get update 21 | - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce 22 | - docker pull ansiblecheck/ansiblecheck:"${distribution,,}"-"${distribution_version}" 23 | 24 | script: 25 | - container_id=$(mktemp) 26 | # Start The Built Container In The Background 27 | - docker run -d -v "${PWD}":/etc/ansible/roles/${role}:ro ${run_opts} ansiblecheck/ansiblecheck:"${distribution,,}"-"${distribution_version}" "${init}" > "${container_id}" 28 | 29 | # Print ansible version 30 | - docker exec -t "$(cat ${container_id})" env TERM=xterm ansible --version 31 | 32 | # Install dependencies 33 | - docker exec -t "$(cat ${container_id})" env TERM=xterm bash -c 'apt-get update && apt-get install -y build-essential' 34 | - docker exec -t "$(cat ${container_id})" env TERM=xterm bash -c 'ansible-galaxy install -c weareinteractive.apt weareinteractive.php5 franklinkim.newrelic' 35 | 36 | # Ansible syntax check. 37 | - 'docker exec -t "$(cat ${container_id})" env TERM=xterm ansible-playbook /etc/ansible/roles/${role}/tests/main.yml --syntax-check' 38 | 39 | # Test role. 40 | - 'docker exec "$(cat ${container_id})" env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v /etc/ansible/roles/${role}/tests/main.yml' 41 | 42 | # Test Idempotence 43 | - idempotence=$(mktemp) 44 | - docker exec "$(cat ${container_id})" ansible-playbook /etc/ansible/roles/${role}/tests/main.yml | tee -a ${idempotence} 45 | - > 46 | tail ${idempotence} 47 | | grep -q 'failed=0' 48 | && (echo 'Idempotence test: pass' && exit 0) 49 | || (echo 'Idempotence test: fail' && exit 1) 50 | 51 | notifications: 52 | webhooks: https://galaxy.ansible.com/api/v1/notifications/ 53 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | ### 1.4.1 (2019-05-13) 3 | 4 | 5 | #### Bug Fixes 6 | 7 | * lint errors ([9c159bc0](https://github.com/weareinteractive/ansible-php5-newrelic/commit/9c159bc0f97764d90319a2f9851b17827c08701d)) 8 | 9 | 10 | 11 | 12 | ## 1.4.0 (2019-05-13) 13 | 14 | 15 | 16 | 17 | 18 | ### 1.3.1 (2019-03-16) 19 | 20 | 21 | #### Features 22 | 23 | * update iteritems with items ([4d2497a8](https://github.com/weareinteractive/ansible-php5-newrelic/commit/4d2497a8a5e179696a6d8d6d50bc2b1203660c31)) 24 | 25 | 26 | 27 | 28 | ## 1.3.0 (2017-01-24) 29 | 30 | 31 | #### Features 32 | 33 | * add extra config variables ([470b8dda](https://github.com/weareinteractive/ansible-php5-newrelic/commit/470b8dda43673170c41fef09f5cf65ec3ba89444)) 34 | 35 | 36 | 37 | 38 | ### 1.2.1 (2016-07-13) 39 | 40 | 41 | 42 | 43 | 44 | ## 1.2.0 (2016-05-09) 45 | 46 | 47 | #### Features 48 | 49 | * parameterizing the destination of the newrelic.ini file ([c9245a1d](https://github.com/weareinteractive/ansible-php5-newrelic/commit/c9245a1d3e999dd114829ebd73dcb55040426012)) 50 | * use ansible-role docgen to generate README ([9df8141a](https://github.com/weareinteractive/ansible-php5-newrelic/commit/9df8141a9ba72e5c2e5803aa52a6f288bb60f4f1)) 51 | * add CHANGELOG ([73a3a33c](https://github.com/weareinteractive/ansible-php5-newrelic/commit/73a3a33c95e71e9b2851d51ccd6df9d8490c1189)) 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) We Are Interactive 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | PWD=$(shell pwd) 2 | ROLE_NAME=weareinteractive.php5-newrelic 3 | ROLE_PATH=/etc/ansible/roles/$(ROLE_NAME) 4 | TEST_VERSION=ansible --version 5 | TEST_DEPS=ansible-galaxy install -c weareinteractive.apt weareinteractive.php5 franklinkim.newrelic 6 | TEST_SYNTAX=ansible-playbook -v -i 'localhost,' -c local $(ROLE_PATH)/tests/main.yml --syntax-check 7 | TEST_PLAYBOOK=ansible-playbook -vvvv -i 'localhost,' -c local $(ROLE_PATH)/tests/main.yml 8 | TEST_IDEMPOTENT=$(TEST_PLAYBOOK) | grep -q 'failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) 9 | TEST_CMD=$(TEST_DEPS); $(TEST_VERSION); $(TEST_SYNTAX); $(TEST_DEPS); $(TEST_PLAYBOOK); $(TEST_IDEMPOTENT) 10 | 11 | lint: 12 | ansible-lint . 13 | 14 | ubuntu12.04: dist=ubuntu-12.04 15 | ubuntu12.04: .run 16 | 17 | ubuntu14.04: dist=ubuntu-14.04 18 | ubuntu14.04: .run 19 | 20 | .run: 21 | @echo "RUN:" 22 | @echo " docker run -it --rm -v $(PWD):$(ROLE_PATH) ansiblecheck/ansiblecheck:$(dist) /bin/bash" 23 | @echo " $(TEST_CMD)" 24 | @docker run -it --rm -v $(PWD):$(ROLE_PATH) ansiblecheck/ansiblecheck:$(dist) /bin/bash -c "$(TEST_CMD)" 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ansible weareinteractive.php5_newrelic role 2 | 3 | [![Build Status](https://img.shields.io/travis/weareinteractive/ansible-php5-newrelic.svg)](https://travis-ci.org/weareinteractive/ansible-php5-newrelic) 4 | [![Galaxy](https://img.shields.io/badge/galaxy-weareinteractive.php5_newrelic-blue.svg)](https://galaxy.ansible.com/weareinteractive/php5-newrelic) 5 | [![GitHub Tags](https://img.shields.io/github/tag/weareinteractive/ansible-php5-newrelic.svg)](https://github.com/weareinteractive/ansible-php5-newrelic) 6 | [![GitHub Stars](https://img.shields.io/github/stars/weareinteractive/ansible-php5-newrelic.svg)](https://github.com/weareinteractive/ansible-php5-newrelic) 7 | 8 | > `weareinteractive.php5_newrelic` is an [Ansible](http://www.ansible.com) role which: 9 | > 10 | > * installs newrelic php agent 11 | > * configures newrelic php agent 12 | > 13 | > Note: Tests are failing due to invalid key 14 | 15 | ## Installation 16 | 17 | Using `ansible-galaxy`: 18 | 19 | ```shell 20 | $ ansible-galaxy install weareinteractive.php5_newrelic 21 | ``` 22 | 23 | Using `requirements.yml`: 24 | 25 | ```yaml 26 | - src: weareinteractive.php5_newrelic 27 | ``` 28 | 29 | Using `git`: 30 | 31 | ```shell 32 | $ git clone https://github.com/weareinteractive/ansible-php5-newrelic.git weareinteractive.php5_newrelic 33 | ``` 34 | 35 | ## Dependencies 36 | 37 | * Ansible >= 2.4 38 | **Note:** 39 | 40 | > Since Ansible Galaxy supports [organization](https://www.ansible.com/blog/ansible-galaxy-2-release) now, this role has moved from `franklinkim.php5-newrelic` to `weareinteractive.php5-newrelic`! 41 | 42 | ## Variables 43 | 44 | Here is a list of all the default variables for this role, which are also available in `defaults/main.yml`. 45 | 46 | ```yaml 47 | --- 48 | # newrelic_license_key: yourkey 49 | # php5_newrelic_extra_config: 50 | # newrelic.enabled: true 51 | 52 | # Sets the name of the file to send log messages to. 53 | php5_newrelic_logfile: /var/log/newrelic/php_agent.log 54 | # Sets the level of detail to include in the log file. 55 | php5_newrelic_loglevel: info 56 | # Sets the name of the file to send daemon log messages to. 57 | php5_newrelic_daemon_logfile: /var/log/newrelic/newrelic-daemon.log 58 | # Sets the level of detail to include in the daemon log. 59 | php5_newrelic_daemon_loglevel: info 60 | # Enables high security for all applications. 61 | php5_newrelic_high_security: no 62 | # Sets the name of the application that metrics will be reported into. 63 | php5_newrelic_appname: myapp 64 | # Sets the desination location of the newrelic.ini file 65 | # Note: for php7 it's /etc/php/7.0/mods-available 66 | php5_newrelic_config_dest: /etc/php5/mods-available 67 | # Writes other config options to newrelic.ini. 68 | php5_newrelic_extra_config: {} 69 | 70 | ``` 71 | 72 | 73 | ## Usage 74 | 75 | This is an example playbook: 76 | 77 | ```yaml 78 | --- 79 | - hosts: all 80 | become: yes 81 | roles: 82 | - weareinteractive.apt 83 | - weareinteractive.php5 84 | - franklinkim.newrelic 85 | - weareinteractive.php5-newrelic 86 | vars: 87 | newrelic_license_key: ab2fa361cd4d0d373833cad619d7bcc424d27c16 88 | php5_newrelic_appname: "My App" 89 | php5_newrelic_extra_config: 90 | newrelic.enabled: true 91 | php5_newrelic_config_dest: "{{ php5_module_path }}" 92 | 93 | ``` 94 | 95 | 96 | ## Testing 97 | 98 | ```shell 99 | $ git clone https://github.com/weareinteractive/ansible-php5-newrelic.git 100 | $ cd ansible-php5-newrelic 101 | $ make test 102 | ``` 103 | 104 | ## Contributing 105 | 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. 106 | 107 | 1. Fork it 108 | 2. Create your feature branch (`git checkout -b my-new-feature`) 109 | 3. Commit your changes (`git commit -am 'Add some feature'`) 110 | 4. Push to the branch (`git push origin my-new-feature`) 111 | 5. Create new Pull Request 112 | 113 | *Note: To update the `README.md` file please install and run `ansible-role`:* 114 | 115 | ```shell 116 | $ gem install ansible-role 117 | $ ansible-role docgen 118 | ``` 119 | 120 | ## License 121 | Copyright (c) We Are Interactive under the MIT license. 122 | -------------------------------------------------------------------------------- /defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # newrelic_license_key: yourkey 3 | # php5_newrelic_extra_config: 4 | # newrelic.enabled: true 5 | 6 | # Sets the name of the file to send log messages to. 7 | php5_newrelic_logfile: /var/log/newrelic/php_agent.log 8 | # Sets the level of detail to include in the log file. 9 | php5_newrelic_loglevel: info 10 | # Sets the name of the file to send daemon log messages to. 11 | php5_newrelic_daemon_logfile: /var/log/newrelic/newrelic-daemon.log 12 | # Sets the level of detail to include in the daemon log. 13 | php5_newrelic_daemon_loglevel: info 14 | # Enables high security for all applications. 15 | php5_newrelic_high_security: no 16 | # Sets the name of the application that metrics will be reported into. 17 | php5_newrelic_appname: myapp 18 | # Sets the desination location of the newrelic.ini file 19 | # Note: for php7 it's /etc/php/7.0/mods-available 20 | php5_newrelic_config_dest: /etc/php5/mods-available 21 | # Writes other config options to newrelic.ini. 22 | php5_newrelic_extra_config: {} 23 | -------------------------------------------------------------------------------- /meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | galaxy_info: 4 | author: franklin 5 | company: We Are Interactive 6 | description: Installs New Relic PHP agent 7 | min_ansible_version: 2.4 8 | license: MIT 9 | # Optionally specify the branch Galaxy will use when accessing the GitHub 10 | # repo for this role. During role install, if no tags are available, 11 | # Galaxy will use this branch. During import Galaxy will access files on 12 | # this branch. If travis integration is cofigured, only notification for this 13 | # branch will be accepted. Otherwise, in all cases, the repo's default branch 14 | # (usually master) will be used. 15 | github_branch: master 16 | # 17 | # Below are all platforms currently available. Just uncomment 18 | # the ones that apply to your role. If you don't see your 19 | # platform on this list, let us know and we'll get it added! 20 | # 21 | platforms: 22 | # - name: EL 23 | # versions: 24 | # - all 25 | # - 5 26 | # - 6 27 | # - name: GenericUNIX 28 | # versions: 29 | # - all 30 | # - any 31 | # - name: Fedora 32 | # versions: 33 | # - all 34 | # - 16 35 | # - 17 36 | # - 18 37 | # - 19 38 | # - 20 39 | # - name: opensuse 40 | # versions: 41 | # - all 42 | # - 12.1 43 | # - 12.2 44 | # - 12.3 45 | # - 13.1 46 | # - 13.2 47 | # - name: GenericBSD 48 | # versions: 49 | # - all 50 | # - any 51 | # - name: FreeBSD 52 | # versions: 53 | # - all 54 | # - 8.0 55 | # - 8.1 56 | # - 8.2 57 | # - 8.3 58 | # - 8.4 59 | # - 9.0 60 | # - 9.1 61 | # - 9.1 62 | # - 9.2 63 | - name: Ubuntu 64 | versions: 65 | # - all 66 | # - lucid 67 | # - maverick 68 | # - natty 69 | # - oneiric 70 | - precise 71 | # - quantal 72 | # - raring 73 | # - saucy 74 | - trusty 75 | # - name: SLES 76 | # versions: 77 | # - all 78 | # - 10SP3 79 | # - 10SP4 80 | # - 11 81 | # - 11SP1 82 | # - 11SP2 83 | # - 11SP3 84 | # - name: GenericLinux 85 | # versions: 86 | # - all 87 | # - any 88 | # - name: Debian 89 | # versions: 90 | # - all 91 | # - etch 92 | # - lenny 93 | # - squeeze 94 | # - wheezy 95 | # 96 | # List tags for your role here, one per line. A tag is 97 | # a keyword that describes and categorizes the role. 98 | # Users find roles by searching for tags. Be sure to 99 | # remove the '[]' above if you add tags to this list. 100 | # 101 | # NOTE: A tag is limited to a single word comprised of 102 | # alphanumeric characters. Maximum 20 tags per role. 103 | galaxy_tags: 104 | - monitoring 105 | - newrelic 106 | - php5 107 | - php 108 | # List your role dependencies here, one per line. Only 109 | # dependencies available via galaxy should be listed here. 110 | # Be sure to remove the '[]' above if you add dependencies 111 | # to this list. 112 | dependencies: [] 113 | -------------------------------------------------------------------------------- /meta/readme.yml: -------------------------------------------------------------------------------- 1 | --- 2 | galaxy_name: weareinteractive.php5_newrelic 3 | github_user: weareinteractive 4 | github_name: ansible-php5-newrelic 5 | badges: | 6 | [![Build Status](https://img.shields.io/travis/weareinteractive/ansible-php5-newrelic.svg)](https://travis-ci.org/weareinteractive/ansible-php5-newrelic) 7 | [![Galaxy](https://img.shields.io/badge/galaxy-weareinteractive.php5_newrelic-blue.svg)](https://galaxy.ansible.com/weareinteractive/php5-newrelic) 8 | [![GitHub Tags](https://img.shields.io/github/tag/weareinteractive/ansible-php5-newrelic.svg)](https://github.com/weareinteractive/ansible-php5-newrelic) 9 | [![GitHub Stars](https://img.shields.io/github/stars/weareinteractive/ansible-php5-newrelic.svg)](https://github.com/weareinteractive/ansible-php5-newrelic) 10 | description: | 11 | > * installs newrelic php agent 12 | > * configures newrelic php agent 13 | > 14 | > Note: Tests are failing due to invalid key 15 | after_dependencies: | 16 | **Note:** 17 | 18 | > Since Ansible Galaxy supports [organization](https://www.ansible.com/blog/ansible-galaxy-2-release) now, this role has moved from `franklinkim.php5-newrelic` to `weareinteractive.php5-newrelic`! 19 | -------------------------------------------------------------------------------- /tasks/config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - name: Configuring module 4 | template: 5 | src: "etc/php5/mods-available/newrelic.ini.j2" 6 | dest: "{{ php5_newrelic_config_dest }}/newrelic.ini" 7 | owner: "root" 8 | group: "root" 9 | mode: "0644" 10 | -------------------------------------------------------------------------------- /tasks/install.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - name: Installing dependencies 4 | apt: 5 | pkg: apt-transport-https 6 | state: present 7 | 8 | - name: Adding APT key 9 | apt_key: 10 | url: https://download.newrelic.com/548C16BF.gpg 11 | 12 | - name: Add APT repository 13 | apt_repository: 14 | repo: "deb http://apt.newrelic.com/debian/ newrelic non-free" 15 | update_cache: yes 16 | 17 | - name: Installing packages 18 | apt: 19 | pkg: "{{ item }}" 20 | state: present 21 | with_items: 22 | - newrelic-php5 23 | -------------------------------------------------------------------------------- /tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - name: Checking for key 4 | fail: 5 | msg: "newrelic_license_key has not been defined" 6 | when: not newrelic_license_key|default(False) 7 | 8 | - include: install.yml 9 | tags: 10 | - monitoring 11 | - php5-newrelic 12 | - install 13 | - php5-newrelic-install 14 | 15 | - include: config.yml 16 | tags: 17 | - monitoring 18 | - php5-newrelic 19 | - config 20 | - php5-newrelic-config 21 | -------------------------------------------------------------------------------- /templates/etc/php5/mods-available/newrelic.ini.j2: -------------------------------------------------------------------------------- 1 | ; {{ ansible_managed }} 2 | ; 3 | ; This file contains the various settings for the New Relic PHP agent. There 4 | ; are many options, all of which are described in detail at the following URL: 5 | ; https://newrelic.com/docs/php/php-agent-phpini-settings 6 | ; 7 | 8 | ; If you use a full path to the extension you insulate yourself from the 9 | ; extension directory changing if you change PHP installations or versions. 10 | ; If you do not use an absolute path then the file must be installed in the 11 | ; active configuration's extension directory. 12 | 13 | [default] 14 | extension = "newrelic.so" 15 | 16 | [newrelic] 17 | ; 18 | ; Setting: newrelic.enabled 19 | ; Type : boolean 20 | ; Scope : per-directory 21 | ; Default: true 22 | ; Info : Enable or disable the agent. Please note that you cannot globally 23 | ; disable the agent and then selectively enable it on a per-directory 24 | ; basis. If you disable the agent in the global INI file then the 25 | ; agent will not initialize at all. However, you can selectively 26 | ; disable the agent on a per-directory basis. 27 | ; 28 | ;newrelic.enabled = true 29 | 30 | ; 31 | ; Setting: newrelic.license 32 | ; Type : string 33 | ; Scope : per-directory 34 | ; Default: none 35 | ; Info : Sets the New Relic license key to use. This can vary from directory 36 | ; to directory if you are running a multi-tenant system. By special 37 | ; dispensation if you upgraded from a previous version of the agent 38 | ; where the license key was set in the daemon, the installation and 39 | ; upgrade script will have preserved your license key from the file 40 | ; /etc/newrelic/newrelic.cfg, but ONLY if you installed via rpm/yum 41 | ; or dpkg. The key is saved in /etc/newrelic/upgrade_please.key 42 | ; and the agent will look for that file if you do not specify a valid 43 | ; license here. 44 | ; It is *STRONGLY* recommended that you set the license key in your 45 | ; INI file(s) and do not rely on the key file being present. Also 46 | ; please note that even if you are not letting the agent start the 47 | ; daemon and are still using newrelic.cfg (see below) the license 48 | ; keyword in that file is no longer obeyed. Instead the agent will 49 | ; use the preserved value of that license from the key file. 50 | ; Once you have updated your INI files to contain the license we 51 | ; urge you to remove /etc/newrelic/upgrade_please.key in order to 52 | ; eliminate the potential for confusion about exactly where the key 53 | ; is coming from. 54 | ; 55 | newrelic.license = "{{ newrelic_license_key }}" 56 | 57 | ; 58 | ; Setting: newrelic.logfile 59 | ; Type : string 60 | ; Scope : system 61 | ; Default: none 62 | ; Info : Sets the name of the file to send log messages to. 63 | ; 64 | newrelic.logfile = "{{ php5_newrelic_logfile }}" 65 | 66 | ; 67 | ; Setting: newrelic.loglevel 68 | ; Type : string 69 | ; Scope : system 70 | ; Default: "info" 71 | ; Info : Sets the level of detail to include in the log file. You should 72 | ; rarely need to change this from the default, and usually only under 73 | ; the guidance of technical support. 74 | ; Must be one of the following values: 75 | ; always, error, warning, info, verbose, debug, verbosedebug 76 | ; 77 | newrelic.loglevel = "{{ php5_newrelic_loglevel }}" 78 | 79 | ; 80 | ; Setting: newrelic.high_security 81 | ; Type : boolean 82 | ; Scope : system 83 | ; Default: false 84 | ; Info : Enables high security for all applications. When high security is 85 | ; enabled, the following behavior will take effect: 86 | ; * Data will not be sent to New Relic unless the newrelic-daemon 87 | ; is using SSL. If the PHP process spawns a newrelic-daemon, it 88 | ; will be configured to use SSL regardless of the value of 89 | ; ```newrelic.daemon.ssl```. 90 | ; * Raw SQL strings will never be gathered, regardless of the value of 91 | ; newrelic.transaction_tracer.record_sql. 92 | ; * Request parameters will never be captured, regardless of the 93 | ; newrelic.attributes configuration settings. 94 | ; * The following API functions will have no effect, and will return 95 | ; false: 96 | ; newrelic_add_custom_parameter 97 | ; newrelic_set_user_attributes 98 | ; 99 | ; IMPORTANT: If you change this setting, you must also change the RPM 100 | ; UI security setting. If the two settings do not match, then no data 101 | ; will be collected. 102 | ; 103 | newrelic.high_security = {{ php5_newrelic_high_security | to_nice_json }} 104 | 105 | ; 106 | ; Setting: newrelic.appname 107 | ; Type : string 108 | ; Scope : per-directory 109 | ; Default: "PHP Application" 110 | ; Info : Sets the name of the application that metrics will be reported into. 111 | ; This can in fact be a list of up to 3 application names, each of 112 | ; which must be separated by a semi-colon. The first name in any such 113 | ; list is considered the 'primary' application name and must be unique 114 | ; for each account / license key. 115 | ; 116 | newrelic.appname = "{{ php5_newrelic_appname }}" 117 | 118 | ; 119 | ; Beginning with version 3.0 of the agent, the daemon can be automatically 120 | ; started by the agent. There is no need to start the daemon before starting 121 | ; Apache or PHP-FPM. All of the newrelic.daemon.* settings are options that 122 | ; control the behavior of the daemon. These settings are converted into the 123 | ; appropriate command line options when the agent starts the daemon. This is 124 | ; now the preferred method of starting the daemon. There are still usage cases 125 | ; (such as using a single daemon for serving multiple Apache instances) where 126 | ; you may want to start the daemon via it's init script, but for most users, 127 | ; this is the best place to configure and start the daemon. 128 | ; 129 | ; The agent will only launch the daemon if one isn't already running. Also 130 | ; note that the agent will NOT stop the daemon once it has started. If you 131 | ; want control over exactly when the daemon starts and stops you can still 132 | ; achieve that by creating a daemon configuration file (located by default at 133 | ; /etc/newrelic/newrelic.cfg) and running the chkconfig or equivalent command. 134 | ; Please see the newrelic.cfg template file for details. That template file 135 | ; is located at /usr/lib/newrelic-php5/scripts/newrelic.cfg.template. 136 | ; 137 | ; Also please note that the options here and in newrelic.cfg are identical, 138 | ; except that in this file they are preceded with "newrelic.daemon.". 139 | ; 140 | 141 | ; 142 | ; Setting: newrelic.daemon.logfile 143 | ; Type : string 144 | ; Scope : system 145 | ; Default: none 146 | ; Info : Sets the name of the file to send daemon log messages to. 147 | ; 148 | newrelic.daemon.logfile = "{{ php5_newrelic_daemon_logfile }}" 149 | 150 | ; 151 | ; Setting: newrelic.daemon.loglevel 152 | ; Type : string 153 | ; Scope : system 154 | ; Default: "info" 155 | ; Info : Sets the level of detail to include in the daemon log. You should 156 | ; rarely need to change this from the default, and usually only under 157 | ; the guidance of technical support. 158 | ; Must be one of the following values: 159 | ; always, error, warning, info, verbose, debug, verbosedebug 160 | ; 161 | newrelic.daemon.loglevel = "{{ php5_newrelic_daemon_loglevel }}" 162 | 163 | ; 164 | ; Setting: newrelic.daemon.ssl 165 | ; Type : boolean 166 | ; Scope : system 167 | ; Default: true (as of version 3.6) 168 | ; Info : Sets whether or not communication with New Relic data collectors 169 | ; should use a secure HTTP connection or not. 170 | ; 171 | ;newrelic.daemon.ssl = true 172 | 173 | ; 174 | ; Setting: newrelic.daemon.ssl_ca_bundle 175 | ; Type : string 176 | ; Scope : system 177 | ; Default: none 178 | ; Info : Sets the location of a file containing CA certificates in PEM 179 | ; format. When set, the certificates in this file will be used 180 | ; to authenticate the New Relic collector servers. If 181 | ; newrelic.daemon.ssl_ca_path is also set (see below), the 182 | ; certificates in this file will be searched first, followed by 183 | ; the certificates contained in the newrelic.daemon.ssl_ca_path 184 | ; directory. This setting has no effect when newrelic.daemon.ssl 185 | ; is set to false. 186 | ;newrelic.daemon.ssl_ca_bundle = "" 187 | 188 | ; 189 | ; Setting: newrelic.daemon.ssl_ca_path 190 | ; Type : string 191 | ; Scope : system 192 | ; Default: none 193 | ; info : Sets the location of a directory containing trusted CA certificates 194 | ; in PEM format. When set, the certificates in this directory will be 195 | ; used to authenticate the New Relic collector servers. If 196 | ; newrelic.daemon.ssl_ca_bundle is also set (see above), it will be 197 | ; searched first followed by the certificates contained in 198 | ; newrelic.daemon.ssl_ca_path. This setting has no effect when 199 | ; newrelic.daemon.ssl is set to false. 200 | ;newrelic.daemon.ssl_ca_path = "" 201 | 202 | ; 203 | ; Setting: newrelic.daemon.proxy 204 | ; Type : string 205 | ; Scope : system 206 | ; Default: none 207 | ; Info : Sets the host and user credentials to use as an egress proxy. This 208 | ; is only used if your site requires a proxy in order to access 209 | ; external servers on the internet, in this case the New Relic data 210 | ; collection servers. This is expressed in one of the following forms: 211 | ; hostname 212 | ; hostname:port 213 | ; user@hostname 214 | ; user@hostname:port 215 | ; user:password@hostname 216 | ; user:password@hostname:port 217 | ; 218 | ;newrelic.daemon.proxy = "" 219 | 220 | ; 221 | ; Setting: newrelic.daemon.pidfile 222 | ; Type : string 223 | ; Scope : system 224 | ; Default: OS dependent 225 | ; Info : Sets the name of the file to store the running daemon's process ID 226 | ; (PID) in. This file is used by the daemon startup and shutdown 227 | ; script to determine whether or not the daemon is already running. 228 | ; 229 | ;newrelic.daemon.pidfile = "" 230 | 231 | ; 232 | ; Setting: newrelic.daemon.location 233 | ; Type : string 234 | ; Scope : system 235 | ; Default: /usr/bin/newrelic-daemon 236 | ; Info : Sets the name of the daemon executable to launch. 237 | ; Please note that on OpenSolaris where /usr is frequently a read-only 238 | ; file system, the default daemon location is 239 | ; /opt/newrelic/bin/newrelic-daemon. 240 | ; 241 | ;newrelic.daemon.location = "/usr/bin/newrelic-daemon" 242 | 243 | ; 244 | ; Setting: newrelic.daemon.collector_host 245 | ; Type : string 246 | ; Scope : system 247 | ; Default: collector.newrelic.com 248 | ; Info : Sets the host name of the New Relic data collector host to use. 249 | ; Please note that this is NOT any form of local host. It refers to 250 | ; the New Relic provided host. There is very little reason to ever 251 | ; change this from the default except in certain very special 252 | ; circumstances, and then only on instruction from a New Relic sales 253 | ; person or support staff member. 254 | ; 255 | ;newrelic.daemon.collector_host = "collector.newrelic.com" 256 | 257 | ; 258 | ; Setting: newrelic.daemon.dont_launch 259 | ; Type : integer (0, 1, 2 or 3) 260 | ; Scope : system 261 | ; Default: 0 262 | ; Info : If you prefer to have the daemon launched externally before the 263 | ; agent starts up, set this variable to non-zero. The value you 264 | ; choose determines exactly when the agent is allowed to start the 265 | ; daemon: 266 | ; 0 - agent can start the daemon any time it needs to 267 | ; 1 - non-CLI (i.e Apache / php-fpm) agents can start the daemon 268 | ; 2 - only CLI agents can start the daemon 269 | ; 3 - the agent will never start the daemon 270 | ; 271 | ;newrelic.daemon.dont_launch = 0 272 | 273 | ; 274 | ; Setting: newrelic.error_collector.enabled 275 | ; Type : boolean 276 | ; Scope : per-directory 277 | ; Default: true 278 | ; Info : Enable the New Relic error collector. This will record the 20 most 279 | ; severe errors per harvest cycle. It is rare to want to disable this. 280 | ; Please also note that your New Relic subscription level may force 281 | ; this to be disabled regardless of any value you set for it. 282 | ; 283 | ;newrelic.error_collector.enabled = true 284 | 285 | ; 286 | ; Setting: newrelic.error_collector.record_database_errors 287 | ; Type : boolean 288 | ; Scope : per-directory 289 | ; Default: false 290 | ; Info : Currently only supported for MySQL database functions. If enabled, 291 | ; this will cause errors returned by various MySQL functions to be 292 | ; treated as if they were PHP errors, and thus subject to error 293 | ; collection. This is only obeyed if the error collector is enabled 294 | ; above and the account subscription level permits error trapping. 295 | ; 296 | ;newrelic.error_collector.record_database_errors = false 297 | 298 | ; 299 | ; Setting: newrelic.error_collector.prioritize_api_errors 300 | ; Type : boolean 301 | ; Scope : per-directory 302 | ; Default: false 303 | ; Info : If the error collector is enabled and you use the New Relic API to 304 | ; notice an error, if this is set to true then assign the highest 305 | ; priority to such errors. 306 | ; 307 | ;newrelic.error_collector.prioritize_api_errors = false 308 | 309 | ; 310 | ; Setting: newrelic.browser_monitoring.auto_instrument 311 | ; Type : boolean 312 | ; Scope : per-directory 313 | ; Default: true 314 | ; Info : Enables or disables automatic real user monitoring ("auto-RUM"). 315 | ; When enabled will cause the agent to insert a header and a footer 316 | ; in HTML output that will time the actual end-user experience. 317 | ; 318 | ;newrelic.browser_monitoring.auto_instrument = true 319 | 320 | ; 321 | ; Setting: newrelic.transaction_tracer.enabled 322 | ; Type : boolean 323 | ; Scope : per-directory 324 | ; Default: true 325 | ; Info : Enables or disables the transaction tracer. When enabled this will 326 | ; produce a detailed call graph for any transaction that exceeds a 327 | ; certain threshold (see next entry). Only one transaction trace per 328 | ; application per harvest cycle is stored and it is always the slowest 329 | ; transaction during that cycle. Transaction traces are extremely 330 | ; useful when diagnosing problem spots in your application. Please 331 | ; note that TT's may be disabled by your account subscription level 332 | ; regardless of what you set here. 333 | ; 334 | ;newrelic.transaction_tracer.enabled = true 335 | 336 | ; 337 | ; Setting: newrelic.transaction_tracer.threshold 338 | ; Type : string with a time specification or the word "apdex_f" 339 | ; Scope : per-directory 340 | ; Default: "apdex_f" 341 | ; Info : Specifies the threshold above which a transaction becomes a 342 | ; candidate for the transaction tracer. This can either be an absolute 343 | ; time value like "200ms" or "1s250ms" or "1h30m" or "750us" or the 344 | ; word "apdex_f". This last value, "apdex_f", means "4 times apdex_t". 345 | ; Thus the threshold changes according to your apdex_t setting. This 346 | ; is the default. 347 | ; 348 | ;newrelic.transaction_tracer.threshold = "apdex_f" 349 | 350 | ; 351 | ; Setting: newrelic.transaction_tracer.detail 352 | ; Type : integer in the range 0-1 353 | ; Scope : per-directory 354 | ; Default: 1 355 | ; Info : Sets the level of detail in a transaction trace. Setting this to 0 356 | ; will only show the relatively few PHP functions that New Relic has 357 | ; deemed to be "interesting", as well as any custom functions you set 358 | ; (see below). A setting of 1 will trace and time all user functions. 359 | ; 360 | ; In earlier releases of the agent this was known as "top100". 361 | ; 362 | ;newrelic.transaction_tracer.detail = 1 363 | 364 | ; 365 | ; Setting: newrelic.transaction_tracer.slow_sql 366 | ; Type : boolean 367 | ; Scope : per-directory 368 | ; Default: true 369 | ; Info : Enables or disables the "slow SQL" tracer. When enabled, this will 370 | ; record the top 10 slowest SQL calls along with a stack trace of 371 | ; where the call occurred in your code. 372 | ; 373 | ;newrelic.transaction_tracer.slow_sql = true 374 | 375 | ; 376 | ; Setting: newrelic.transaction_tracer.stack_trace_threshold 377 | ; Type : time specification string ("500ms", "1s750ms" etc) 378 | ; Scope : per-directory 379 | ; Default: 500ms 380 | ; Info : Sets the threshold above which the New Relic agent will record a 381 | ; stack trace for a transaction trace. 382 | ; 383 | ;newrelic.transaction_tracer.stack_trace_threshold = 500 384 | 385 | ; 386 | ; Setting: newrelic.transaction_tracer.explain_enabled 387 | ; Type : boolean 388 | ; Scope : per-directory 389 | ; Default: true 390 | ; Info : Enables or disables requesting "explain plans" from MySQL and 391 | ; PostgreSQL databases for slow SQL calls. The threshold for 392 | ; requesting explain plans is defined below. 393 | ; 394 | ;newrelic.transaction_tracer.explain_enabled = true 395 | 396 | ; 397 | ; Setting: newrelic.transaction_tracer.explain_threshold 398 | ; Type : time specification string ("750ms", "1s 500ms" etc) 399 | ; Scope : per-directory 400 | ; Default: 500ms 401 | ; Info : Used by the slow SQL tracer to set the threshold above which an SQL 402 | ; statement is considered "slow", and to set the threshold above which 403 | ; the transaction tracer will request an "explain plan" from the data- 404 | ; base for slow SQL. This latter feature may not be active yet, please 405 | ; refer to the agent release notes to see when it becomes available. 406 | ; Only relevant if explain_enabled above is set to true. 407 | ; 408 | ;newrelic.transaction_tracer.explain_threshold = 500 409 | 410 | ; 411 | ; Setting: newrelic.transaction_tracer.record_sql 412 | ; Type : "off", "raw" or "obfuscated" 413 | ; Scope : per-directory 414 | ; Default: "obfuscated" 415 | ; Info : Sets how SQL statements are recorded (if at all). If this is set to 416 | ; "raw" then no attempt is made at obfuscating SQL statements. 417 | ; USING "raw" IS HIGHLY DISCOURAGED IN PRODUCTION ENVIRONMENTS! 418 | ; Setting this to "raw" has considerable security implications 419 | ; as it can expose sensitive and private customer data. 420 | ; 421 | ;newrelic.transaction_tracer.record_sql = "obfuscated" 422 | 423 | ; Setting: newrelic.transaction_tracer.custom 424 | ; Type : string 425 | ; Scope : per-directory 426 | ; Default: none 427 | ; Info : Sets the name(s) of additional functions you want to instrument and 428 | ; appear in transaction traces. This is only meaningful if you have 429 | ; set newrelic.transaction_tracer.detail to 0. This can be a comma- 430 | ; separated list of function or class method names. 431 | ; 432 | ;newrelic.transaction_tracer.custom = "" 433 | 434 | ; 435 | ; Setting: newrelic.framework 436 | ; Type : string 437 | ; Scope : per-directory 438 | ; Default: empty (auto-detect framework) 439 | ; Info : Forces the framework to be one of the supported frameworks. This 440 | ; should only ever be used if the auto-detection fails, in which case 441 | ; we (support.newrelic.com) would very much like to know about the 442 | ; detection failure. Must be one of the following values: 443 | ; cakephp, codeigniter, drupal, drupal8, joomla, kohana, laravel, magento, 444 | ; mediawiki, symfony, wordpress, yii, zend or no_framework. 445 | ; Note that "drupal" covers only Drupal 6 and 7. 446 | ; 447 | ;newrelic.framework = "" 448 | 449 | ; 450 | ; Setting: newrelic.webtransaction.name.remove_trailing_path 451 | ; Type : boolean 452 | ; Scope : per-directory 453 | ; Default: false 454 | ; Info : Used to aid naming transactions correctly when an unsupported 455 | ; framework is being used. This option will cause anything after the 456 | ; script name to be stripped from a URL. For example, setting this 457 | ; would cause the "/xyz/zy" to be stripped from a URL such as 458 | ; "/path/to/foo.php/xyz/zy". 459 | ; 460 | ;newrelic.webtransaction.name.remove_trailing_path = false 461 | 462 | ; 463 | ; Setting: newrelic.webtransaction.name.functions 464 | ; Type : string 465 | ; Scope : per-directory 466 | ; Default: none 467 | ; Info : Unless a specific framework such as Drupal or Wordpress has been 468 | ; detected, transactions are named according to the first script 469 | ; encountered, such as login.php. However, if you use a dispatcher 470 | ; file such as index.php this produces less useful data. If you use 471 | ; a dispatcher to redirect to actions such as "login", "show", "edit" 472 | ; etc, you can set this to the top level functions for those actions, 473 | ; and the function names specified here will be used to name the 474 | ; transaction. 475 | ; 476 | ;newrelic.webtransaction.name.functions = "" 477 | 478 | ; 479 | ; Setting: newrelic.webtransaction.name.files 480 | ; Type : string 481 | ; Scope : per-directory 482 | ; Default: none 483 | ; Info : Same as newrelic.webtransaction.name.functions above but using file 484 | ; names instead of function names. Accepts standard POSIX regular 485 | ; expressions. 486 | ; 487 | ;newrelic.webtransaction.name.files = "" 488 | 489 | ; 490 | ; Setting: newrelic.daemon.auditlog 491 | ; Type : string 492 | ; Scope : system 493 | ; Default: none 494 | ; info : Sets the name of a file to record all uncompressed, un-encoded 495 | ; content that is sent from your machine to the New Relic servers. 496 | ; This includes the full URL for each command along with the payload 497 | ; delivered with the command. This allows you to satisfy yourself 498 | ; that the agent is not sending any sensitive data to our servers. 499 | ; This file must be a different file the the newrelic.daemon.logfile 500 | ; setting above. If you set it to the same name, then audit logging will be 501 | ; silently ignored. 502 | ;newrelic.daemon.auditlog = "/var/log/newrelic/audit.log" 503 | 504 | ; 505 | ; Setting: newrelic.transaction_events.enabled 506 | ; Type : boolean 507 | ; Scope : per-directory 508 | ; Default: true 509 | ; info : Collect and report transaction analytics event data. Event data 510 | ; allows the New Relic UI to show additional information such as 511 | ; histograms. This setting was formerly called 512 | ; newrelic.analytics_events.enabled. 513 | ; 514 | ;newrelic.transaction_events.enabled = true 515 | 516 | ; 517 | ; Setting: newrelic.attributes.enabled 518 | ; Type : boolean 519 | ; Scope : per-directory 520 | ; Default: true 521 | ; info : Enable or disable the collection of attributes generated by the 522 | ; agent or generated by the user though newrelic_add_custom_parameter. 523 | ; This setting will take precedence over all other attribute 524 | ; configuration settings. For more information, please refer to: 525 | ; https://docs.newrelic.com/docs/subscriptions/agent-attributes 526 | ; 527 | ;newrelic.attributes.enabled = true 528 | 529 | ; 530 | ; Setting: newrelic.transaction_events.attributes.enabled 531 | ; newrelic.transaction_tracer.attributes.enabled 532 | ; newrelic.error_collector.attributes.enabled 533 | ; newrelic.browser_monitoring.attributes.enabled 534 | ; Type : boolean 535 | ; Scope : per-directory 536 | ; Default: true, except for browser_monitoring.attributes.enabled 537 | ; info : Control which destinations receive attributes. 538 | ; These configuration settings will override the .include and .exclude 539 | ; settings below. 540 | ; For more information, please refer to: 541 | ; https://docs.newrelic.com/docs/subscriptions/agent-attributes 542 | ; 543 | ; These settings were formerly called: 544 | ; newrelic.transaction_tracer.capture_attributes 545 | ; newrelic.error_collector.capture_attributes 546 | ; newrelic.analytics_events.capture_attributes 547 | ; newrelic.browser_monitoring.capture_attributes 548 | ; 549 | ; 550 | ;newrelic.transaction_events.attributes.enabled = true 551 | ;newrelic.transaction_tracer.attributes.enabled = true 552 | ;newrelic.error_collector.attributes.enabled = true 553 | ;newrelic.browser_monitoring.attributes.enabled = false 554 | 555 | ; 556 | ; Setting: newrelic.attributes.include 557 | ; newrelic.attributes.exclude 558 | ; 559 | ; newrelic.transaction_events.attributes.include 560 | ; newrelic.transaction_events.attributes.exclude 561 | ; 562 | ; newrelic.transaction_tracer.attributes.include 563 | ; newrelic.transaction_tracer.attributes.exclude 564 | ; 565 | ; newrelic.error_collector.attributes.include 566 | ; newrelic.error_collector.attributes.exclude 567 | ; 568 | ; newrelic.browser_monitoring.attributes.include 569 | ; newrelic.browser_monitoring.attributes.exclude 570 | ; 571 | ; Type : string 572 | ; Scope : per-directory 573 | ; Default: none 574 | ; info : Each attribute has a default set of destinations. For example, the 575 | ; 'request_uri' attribute's default destinations are errors and 576 | ; transaction traces. The 'httpResponseCode' attribute's default 577 | ; destinations are errors, transaction traces, and transaction events. 578 | ; 579 | ; These configuration options allow complete control over the 580 | ; destinations of attributes. 581 | ; 582 | ; To include the attribute whose key is 'alpha' in errors, the 583 | ; configuration is: 584 | ; newrelic.error_collector.include = alpha 585 | ; 586 | ; To exclude the attribute whose key is 'alpha' from errors, the 587 | ; configuration is: 588 | ; newrelic.error_collector.exclude = alpha 589 | ; 590 | ; The newrelic.attributes.exclude and newrelic.attributes.include 591 | ; settings affect all destinations. 592 | ; 593 | ; To exclude the attributes 'beta' and 'gamma' from all destinations, 594 | ; the configuration is: 595 | ; newrelic.attributes.exclude = beta,gamma 596 | ; 597 | ; If one of the values in the comma separated list ends in a '*', 598 | ; it will match any suffix. For example, to exclude any attributes 599 | ; which begin with 'psi', the configuration is: 600 | ; newrelic.attributes.exclude = psi* 601 | ; 602 | ; For more information, please refer to: 603 | ; https://docs.newrelic.com/docs/subscriptions/agent-attributes 604 | ; 605 | ;newrelic.attributes.include = "" 606 | ;newrelic.attributes.exclude = "" 607 | ; 608 | ;newrelic.transaction_events.attributes.include = "" 609 | ;newrelic.transaction_events.attributes.exclude = "" 610 | ; 611 | ;newrelic.transaction_tracer.attributes.include = "" 612 | ;newrelic.transaction_tracer.attributes.exclude = "" 613 | ; 614 | ;newrelic.error_collector.attributes.include = "" 615 | ;newrelic.error_collector.attributes.exclude = "" 616 | ; 617 | ;newrelic.browser_monitoring.attributes.include = "" 618 | ;newrelic.browser_monitoring.attributes.exclude = "" 619 | 620 | ; 621 | ; Setting: newrelic.feature_flag 622 | ; Type : string 623 | ; Scope : system 624 | ; Default: none 625 | ; Info : Enables experimental features within the PHP agent. These flags are 626 | ; used to allow testing of features that may be provided in future 627 | ; versions of the agent. Please note that we may be unable to provide 628 | ; support for experimental features. 629 | ; 630 | ;newrelic.feature_flag = "" 631 | 632 | ; Setting: newrelic.custom_insights_events.enabled 633 | ; Type : boolean 634 | ; Scope : per-directory 635 | ; Default: true 636 | ; Info : Enables or disables the API function newrelic_record_custom_event. 637 | ; 638 | ;newrelic.custom_insights_events.enabled = true 639 | 640 | ; Setting: newrelic.labels 641 | ; Type : string (Use quotes) 642 | ; Scope : per-directory 643 | ; Default: none 644 | ; Info : Sets the label names and values to associate with the application. 645 | ; The list is a semi-colon delimited list of colon-separated name and 646 | ; value pairs. 647 | ; 648 | ; There are a maximum of 64 label name/value pairs allowed. 649 | ; 650 | ; The maximum length of the name and value is 255 characters each. 651 | ; 652 | ; Leading or trailing whitespace in the name or value will be trimmed. 653 | ; 654 | ; UTF-8 characters are allowed. 655 | ; 656 | ; E.g., "Server:One;Data Center:Primary" 657 | ; 658 | ;newrelic.labels = "" 659 | 660 | ; Setting: newrelic.synthetics.enabled 661 | ; Type : boolean 662 | ; Scope : per-directory 663 | ; Default: true 664 | ; Info : Enables or disables support for Synthetics transactions. 665 | ; For more information, please see: 666 | ; https://docs.newrelic.com/docs/synthetics/new-relic-synthetics/getting-started/new-relic-synthetics 667 | ; 668 | ;newrelic.synthetics.enabled = true 669 | 670 | ; Extra settings through php5_newrelic_extra_config 671 | {% for key, value in php5_newrelic_extra_config.items() %} 672 | {{ key }} = {{ value | to_nice_json }} 673 | {% endfor %} 674 | -------------------------------------------------------------------------------- /tests/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: all 3 | become: yes 4 | roles: 5 | - weareinteractive.apt 6 | - weareinteractive.php5 7 | - franklinkim.newrelic 8 | - weareinteractive.php5-newrelic 9 | vars: 10 | newrelic_license_key: ab2fa361cd4d0d373833cad619d7bcc424d27c16 11 | php5_newrelic_appname: "My App" 12 | php5_newrelic_extra_config: 13 | newrelic.enabled: true 14 | php5_newrelic_config_dest: "{{ php5_module_path }}" 15 | --------------------------------------------------------------------------------