Skip to content

Commit

Permalink
[newrelic] refactor newrelic_enabled
Browse files Browse the repository at this point in the history
Make sure to enable New Relic in production and staging. Set a default in case
it's unset.
  • Loading branch information
adborden committed Jan 26, 2021
1 parent 3529e27 commit a213243
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ansible/group_vars/all/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ newrelic_app_envs: |
NEW_RELIC_LICENSE_KEY="{{ newrelic_license_key }}"
NEW_RELIC_LOG=/var/log/new_relic.log
NEW_RELIC_LOG_LEVEL=info
NEW_RELIC_MONITOR_MODE={{ newrelic_enabled | ternary('true', 'false') }}
NEW_RELIC_MONITOR_MODE={{ newrelic_enabled | default(False) | ternary('true', 'false') }}
newrelic_environment: "{{ datagov_environment | default('unknown') }}"
nrinfragent_config:
license_key: "{{ newrelic_license_key }}"
Expand Down
1 change: 1 addition & 0 deletions ansible/inventories/production/group_vars/all/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ inventory_next_postgresql_db_name: "{{ vault_inventory_next_postgresql_db_name }
inventory_next_datapusher_db_name: "{{ vault_inventory_next_datapusher_db_name }}"

# New Relic
newrelic_enabled: true
newrelic_license_key: "{{ vault_newrelic_license_key }}"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ inventory_ckan_bucket_prefix: "{{ inventory_next_ckan_s3_bucket_prefix }}"
ckan_site_domain: "{{ inventory_next_ckan_service_url }}"

inventory_app_repo_branch: inventory-28-with-saml2
newrelic_app_name: inventory-next-sandbox
newrelic_enabled: false
newrelic_app_name: inventory-next

inventory_ckan_plugins_additional: [saml2auth s3filestore]

Expand Down
1 change: 1 addition & 0 deletions ansible/inventories/staging/group_vars/all/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ inventory_next_postgresql_db_name: "{{ vault_inventory_next_postgresql_db_name }
inventory_next_datapusher_db_name: "{{ vault_inventory_next_datapusher_db_name }}"

# New Relic
newrelic_enabled: true
newrelic_license_key: "{{ vault_newrelic_license_key }}"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ inventory_ckan_bucket_prefix: "{{ inventory_next_ckan_s3_bucket_prefix }}"
ckan_site_domain: "{{ inventory_next_ckan_service_url }}"

inventory_app_repo_branch: inventory-28-with-saml2
newrelic_app_name: inventory-next-staging
newrelic_enabled: true
newrelic_app_name: inventory-next

inventory_ckan_plugins_additional: [saml2auth s3filestore]

Expand Down

0 comments on commit a213243

Please sign in to comment.