2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'modules/statistics/manifests/performance.pp', line 2
class statistics::performance {
Class['::statistics'] -> Class['::statistics::performance']
ensure_packages([
# asoranking requires pandas, which is not installed by default.
'python3-pandas'
])
$working_path = $::statistics::working_path
$user = 'analytics-privatedata'
$group = 'analytics-privatedata-users'
scap::target { 'performance/asoranking':
deploy_user => 'analytics-deploy',
key_name => 'analytics_deploy',
manage_user => true,
}
kerberos::systemd_timer { 'performance-asoranking':
description => 'ASO ranking report monthly run',
command => '/usr/bin/python3 /srv/deployment/performance/asoranking/asoranking.py --debug --threshold 1000 --publish',
# Run at noon on the first day of every month
interval => '*-*-01 12:00:00',
user => $user,
logfile_name => 'asoranking.log',
logfile_owner => $user,
logfile_group => $group,
syslog_force_stop => true,
syslog_identifier => 'performance-asoranking',
slice => 'user.slice',
require => Scap::Target['performance/asoranking'],
}
}
|