Skip to content

Commit

Permalink
Merge pull request #888 from rioug/10997-add-new-relic-configuration
Browse files Browse the repository at this point in the history
Add new relic env variable
  • Loading branch information
mkllnk authored Aug 7, 2023
2 parents a28e492 + 2329fcc commit 0986ee1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inventory/host_vars/_example.com/secrets.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,9 @@ smtp_password:
#geocoder_api_key: pk.xxxx
#geocoder_service: mapbox
#geocoder_timeout: 7

# New relic settings
# see: https://one.eu.newrelic.com/admin-portal/, Administration > API keys to get the license key
# new_relic_agent_enabled: true
# new_relic_app_name: "Open Food Network"
# new_relic_license_key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
6 changes: 6 additions & 0 deletions roles/app/templates/env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,10 @@ OPENID_APP_ID="{{ openid_app_id }}"
OPENID_APP_SECRET="{{ openid_app_secret }}"
{% endif %}

{% if new_relic_agent_enabled is defined %}
NEW_RELIC_AGENT_ENABLED="{{ new_relic_agent_enabled }}"
NEW_RELIC_APP_NAME="{{ new_relic_app_name }}"
NEW_RELIC_LICENSE_KEY="{{ new_relic_license_key }}"
{% endif %}

{{ custom_env_vars | default('') }}

0 comments on commit 0986ee1

Please sign in to comment.