Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/swh/deploy/deposit.pp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | class profile::swh::deploy::deposit { | ||||
file {$media_root_directory: | file {$media_root_directory: | ||||
ensure => directory, | ensure => directory, | ||||
owner => $user, | owner => $user, | ||||
group => $group, | group => $group, | ||||
mode => '2750', | mode => '2750', | ||||
} | } | ||||
$sentry_dsn = lookup("swh::deploy::deposit::sentry_dsn", Optional[String], 'first', undef) | |||||
$sentry_environment = lookup("swh::deploy::deposit::sentry_environment", Optional[String], 'first', undef) | |||||
$sentry_swh_package = lookup("swh::deploy::deposit::sentry_swh_package", Optional[String], 'first', undef) | |||||
::gunicorn::instance {'swh-deposit': | ::gunicorn::instance {'swh-deposit': | ||||
ensure => enabled, | ensure => enabled, | ||||
user => $user, | user => $user, | ||||
group => $group, | group => $group, | ||||
executable => 'django.core.wsgi:get_wsgi_application()', | executable => 'django.core.wsgi:get_wsgi_application()', | ||||
environment => { | environment => { | ||||
'SWH_CONFIG_FILENAME' => $config_file, | 'SWH_CONFIG_FILENAME' => $config_file, | ||||
'DJANGO_SETTINGS_MODULE' => 'swh.deposit.settings.production', | 'DJANGO_SETTINGS_MODULE' => 'swh.deposit.settings.production', | ||||
'SWH_SENTRY_DSN' => "${sentry_dsn}", | |||||
'SWH_SENTRY_ENVIRONMENT' => "${sentry_environment}", | |||||
olasd: no need for quotes / variable expansion here | |||||
'SWH_MAIN_PACKAGE' => "${sentry_swh_package}", | |||||
}, | }, | ||||
settings => { | settings => { | ||||
bind => $backend_listen_address, | bind => $backend_listen_address, | ||||
workers => $backend_workers, | workers => $backend_workers, | ||||
worker_class => 'sync', | worker_class => 'sync', | ||||
timeout => $backend_http_timeout, | timeout => $backend_http_timeout, | ||||
graceful_timeout => $backend_reload_mercy, | graceful_timeout => $backend_reload_mercy, | ||||
keepalive => $backend_http_keepalive, | keepalive => $backend_http_keepalive, | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |
no need for quotes / variable expansion here