Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

Commit

Permalink
[refs #75 akvo/akvo-rsr#541] Adding additional RSR configuration to (…
Browse files Browse the repository at this point in the history
…optionally) log errors to Sentry
  • Loading branch information
Carl Crowder committed May 12, 2014
1 parent 19f8658 commit 19ac5d0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions puppet/modules/rsr/manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
$statsd_prefix = "rsr.${::environment}"
}

$use_sentry = hiera('rsr_use_sentry', false)
if $use_sentry {
$sentry_dsn = hiera('rsr_sentry_dsn')
}

$smtp_user = $rsr::params::smtp_user
$smtp_password = $rsr::params::smtp_password

Expand Down
13 changes: 13 additions & 0 deletions puppet/modules/rsr/templates/local.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,16 @@ EMAIL_PORT = 465
EMAIL_HOST_USER = '<%= @smtp_user %>'
EMAIL_HOST_PASSWORD = '<%= @smtp_password %>'
EMAIL_USE_TLS = True


<% if @use_sentry %>
# Set your DSN value
RAVEN_CONFIG = {
'dsn': '<%= @sentry_dsn %>',
}

# Add raven to the list of installed apps
INSTALLED_APPS = INSTALLED_APPS + (
'raven.contrib.django.raven_compat',
)
<% -end %>

0 comments on commit 19ac5d0

Please sign in to comment.