Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/swh/deploy/webapp.pp
Show First 20 Lines • Show All 206 Lines • ▼ Show 20 Lines | profile::filebeat::log_input { "${vhost_name}-non-ssl-access": | ||||
paths => [ "/var/log/apache2/${vhost_name}_non-ssl_access.log" ], | paths => [ "/var/log/apache2/${vhost_name}_non-ssl_access.log" ], | ||||
fields => { | fields => { | ||||
'apache_log_type' => 'access_log', | 'apache_log_type' => 'access_log', | ||||
'environment' => $environment, | 'environment' => $environment, | ||||
'vhost' => $vhost_name, | 'vhost' => $vhost_name, | ||||
'application' => 'webapp', | 'application' => 'webapp', | ||||
}, | }, | ||||
} | } | ||||
$activate_once_per_environment_webapp = lookup('swh::deploy::webapp::cron::refresh_statuses') | |||||
if $activate_once_per_environment_webapp { | |||||
profile::cron::d {'refresh-savecodenow-statuses': | |||||
target => 'refresh-savecodenow-statuses', | |||||
command => 'chronic sh -c "/usr/bin/django-admin refresh_savecodenow_statuses"', | |||||
user => 'root', | |||||
minute => '*', | |||||
hour => '*', | |||||
} | |||||
} | |||||
} | } |