unleashedtech.newrelic_php
New Relic PHP Agent - Ansible角色
在基于Debian的服务器上安装New Relic PHP代理。与geerlingguy.php
角色完全兼容。
需求
安装
将此角色添加到requirements.yml
:
- src: unleashedtech.newrelic_php
version: 1.1.0 # 检查最新版本!
运行$ ansible-galaxy install -r requirements.yml
来安装这个新角色。
角色变量
# New Relic许可证密钥
## 你应该将其存储在加密的保险库文件中!
## 参见: https://docs.newrelic.com/docs/accounts-partnerships/accounts/account-setup/license-key
newrelic_license_key: xxxxxxxxxxx
# 指定所需的软件包状态。
# `latest` 确保安装最新版本。
# `present` 如果已经安装则不更新。
# `absent` 将删除软件包及所有配置文件。
# 选项: present|latest|absent
# 默认值: latest
newrelic_php_package_state: present
# 参见 https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration
newrelic_php_config:
appname: "我的优秀应用 {{ env }}"
transaction_tracer.detail: 1
datastore_tracer.database_name_reporting.enabled: true
限制
- 每个服务器只允许一个New Relic APM应用程序
欢迎提交拉取请求。
参见
许可
安装
ansible-galaxy install unleashedtech.newrelic_php
许可证
mit
下载
3.8k
拥有者
Open source experts focused on your organization and its processes, developing solutions that will unleash your business’ potential.