Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Set SENTRY_CURRENT_ENV everywhere
Browse files Browse the repository at this point in the history
This sets the current environment for Sentry to the value currently
used for errbit, so either integration/staging/production
(getsentry/sentry-ruby#736).
  • Loading branch information
tijmenb committed Aug 21, 2017
1 parent cd7bab4 commit 61764ea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions hieradata/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ govuk_containers::app::config::global_envvars:
- "RACK_ENV=production"
- "RAILS_ENV=production"
- "ERRBIT_ENVIRONMENT_NAME=%{hiera('govuk::deploy::config::errbit_environment_name')}"
- "SENTRY_CURRENT_ENV=%{hiera('govuk::deploy::config::errbit_environment_name')}"
- "GOVUK_APP_DOMAIN=%{hiera('app_domain')}"
- "GOVUK_ASSET_HOST=%{hiera('govuk::deploy::config::asset_root')}"
- "GOVUK_ASSET_ROOT=%{hiera('govuk::deploy::config::asset_root')}"
Expand Down
1 change: 1 addition & 0 deletions hieradata/development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ govuk_containers::app::config::global_envvars:
- "RACK_ENV=development"
- "RAILS_ENV=development"
- "ERRBIT_ENVIRONMENT_NAME=%{hiera('govuk::deploy::config::errbit_environment_name')}"
- "SENTRY_CURRENT_ENV=%{hiera('govuk::deploy::config::errbit_environment_name')}"
- "GOVUK_APP_DOMAIN=%{hiera('app_domain')}"
- "GOVUK_ASSET_HOST=%{hiera('govuk::deploy::config::asset_root')}"
- "GOVUK_ASSET_ROOT=%{hiera('govuk::deploy::config::asset_root')}"
Expand Down
1 change: 1 addition & 0 deletions hieradata_aws/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ govuk_containers::app::config::global_envvars:
- "RACK_ENV=production"
- "RAILS_ENV=production"
- "ERRBIT_ENVIRONMENT_NAME=%{hiera('govuk::deploy::config::errbit_environment_name')}"
- "SENTRY_CURRENT_ENV=%{hiera('govuk::deploy::config::errbit_environment_name')}"
- "GOVUK_APP_DOMAIN=%{hiera('app_domain')}"
- "GOVUK_ASSET_HOST=%{hiera('govuk::deploy::config::asset_root')}"
- "GOVUK_ASSET_ROOT=%{hiera('govuk::deploy::config::asset_root')}"
Expand Down
1 change: 1 addition & 0 deletions modules/govuk/manifests/deploy/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
'RAILS_ENV': value => $govuk_env;

'ERRBIT_ENVIRONMENT_NAME': value => $errbit_environment_name;
'SENTRY_CURRENT_ENV': value => $errbit_environment_name;
'GOVUK_APP_DOMAIN': value => $app_domain;
'GOVUK_ASSET_HOST': value => $asset_root;
'GOVUK_ASSET_ROOT': value => $asset_root;
Expand Down

0 comments on commit 61764ea

Please sign in to comment.