Open kirkmadera opened 7 years ago
Validated and am making a pull request in a few
Can anyone review this pull request and merge it in? It breaks in Travis CI, but the errors displayed in the details seem like an issue with Travis CI or its config; not a code issue. This code works and I have been using this on projects since I submitted the PR.
Any update on this? We'd like to go back to using a tagged version, but this needs to get merged in.
For anyone else hitting this, another workaround is to set it in php settings (if using the mayflower/php)
php::settings:
newrelic/newrelic.appname: My App Name
You can also do this in Nginx vhosts if using puppet/nginx if you need to set this per application:
nginx::nginx_vhosts:
myvhost:
# other code
locations:
# Other locations
index_php:
location: /index.php
fastcgi: 127.0.0.1:9000
index_files: []
www_root:
location_cfg_prepend:
expires: "off"
fastcgi_read_timeout: 18000
fastcgi_param:
SCRIPT_FILENAME: $document_root$fastcgi_script_name
PHP_VALUE: "newrelic.appname=\"My App Name\""
Can confirm I'm seeing the same issue.
Would be hugely helpful to have https://github.com/fsalum/puppet-newrelic/pull/71 merged!
I can also confirm the same issue. The proposed fix in #71 solves the issue. @fsalum Is there any chance you could hit the merge button on that PR? :)
The newrelic.ini template attempts to use data with local variable names, but no data is actually being passed to it.
I believe that all parameters in the php agent definition are now ignored because the ini file is created in a separate class scope of
newrelic::php::newrelic_ini
: