Puppet Class: role::sentry
- Defined in:
- puppet/modules/role/manifests/sentry.pp
Overview
Class: role::sentry
Installs a Sentry instance which collects errors from your wiki
- dsn
-
The Sentry DSN to use, see raven.readthedocs.org/en/latest/config/#the-sentry-dsn
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'puppet/modules/role/manifests/sentry.pp', line 8
class role::sentry (
$dsn,
) {
include ::sentry
include ::role::buggy
$hostname = $::sentry::vhost_name
mediawiki::extension { 'Sentry':
settings => [
# OMG that's ugly. Did not find a better way to reuse
# the output of a script.
"\$wgSentryDsn = trim(file_get_contents('${dsn}'));",
],
composer => true,
}
mediawiki::import::text { 'VagrantRoleSentry':
content => template('role/sentry/VagrantRoleSentry.wiki.erb'),
}
}
|