|
1 | | -# this file describes the elements of deploying the pbench background tools |
| 1 | +# This file describes the elements of deploying the pbench background tools. |
2 | 2 | [DEFAULT] |
3 | | -# CHANGE ME! |
| 3 | +# cvalues here override those in pbench-server-default.cfg. |
| 4 | +# An installation will want to override at least the following: |
4 | 5 | |
5 | | -version = 001 |
6 | | - |
7 | | -# CHANGE ME! |
8 | 6 | default-host = pbench.example.com |
9 | | -default-user = pbench |
10 | | -default-group = pbench |
11 | | -default-deploy-dir = /opt/pbench-server |
12 | | - |
13 | | -default-script-dir = %(default-deploy-dir)s/bin |
14 | | -default-lib-dir = %(default-deploy-dir)s/lib |
15 | | -default-crontab-dir = %(default-lib-dir)s/crontab |
16 | | -default-lock-dir = %(default-lib-dir)s/locks |
17 | | - |
18 | | -deploy-script-dir = %(default-script-dir)s |
19 | | -deploy-lib-dir = %(default-lib-dir)s |
20 | | -deploy-crontab-dir=%(default-crontab-dir)s |
21 | | -deploy-lock-dir = %(default-lock-dir)s |
22 | 7 |
|
23 | | -## See pbench server setup documentation for filesystem setup |
24 | | -# TOP and ARCHIVE are on pbench volume |
25 | | -deploy-pbench-dir = /pbench |
26 | | -deploy-archive-dir = %(deploy-pbench-dir)s/archive/fs-version-%(version)s |
27 | | -# CHANGE ME! |
28 | | -# LOGSDIR is local - XXX TBD |
29 | | -deploy-pbench-logs-dir = /srv/tmp/logs |
30 | | -# CHANGE ME! |
31 | | -# BDIR may be remote |
| 8 | +# Backup dir may be remote |
32 | 9 | deploy-backup-host = pbench-backup.example.com |
33 | 10 | deploy-pbench-backup-dir = %(default-user)s@%(deploy-backup-host)s:/pbench-local/archive.backup |
34 | | -# CHANGE ME! |
35 | | -# TMP is local |
36 | | -deploy-pbench-tmp-dir = /srv/tmp |
37 | | - |
38 | | -[pbench-files] |
39 | | -pbench-top-dir = %(deploy-pbench-dir)s |
40 | | -pbench-backup-dir = %(deploy-pbench-backup-dir)s |
41 | | -pbench-logs-dir = %(deploy-pbench-logs-dir)s |
42 | | -pbench-tmp-dir = %(deploy-pbench-tmp-dir)s |
43 | | - |
44 | | -########################################################################### |
45 | | -## runtime section |
46 | | -########################################################################### |
47 | | -[sosreport] |
48 | | -user = %(default-user)s |
49 | | -# CHANGE ME! |
50 | | -host = pbench-sosreports.example.com |
51 | | -dir = /path/to/sosreport/dir |
52 | | -# CHANGE ME! |
53 | | - |
54 | 11 |
|
55 | 12 | ########################################################################### |
56 | 13 | ## deployment section |
57 | 14 | ########################################################################### |
58 | 15 | [pbench-server] |
59 | | -user = %(default-user)s |
60 | | -group = %(default-group)s |
| 16 | +# we now index status into ES, but in some cases we might still want to use mail. |
61 | 17 | use-mail-for-status = yes |
62 | | -install-dir = %(default-deploy-dir)s |
63 | | -# CHANGE ME! |
64 | 18 | roles = pbench-results, pbench-backup |
65 | | -# roles = pbench-results, pbench-backup, pbench-rsync-satellites |
66 | | - |
67 | | -# we need to install some stuff in the apache document root |
68 | | -# so we either get it directly or look in the config file. |
69 | | -# N.B. Different distros use different config files. |
70 | | -# The following works on Fedora, RHEL, CentOS. |
71 | | -[apache] |
72 | | -# configfile = /etc/httpd/conf/httpd.conf |
73 | | -documentroot = /var/www/html |
74 | | - |
75 | | -# this *has* to agree with the setting in the pbench-agent config file |
76 | | -[results] |
77 | | - |
78 | | -# CHANGE ME! |
79 | | -webserver = pbench.example.com |
80 | | -host_info_url = http://%(webserver)s/pbench-results-host-info.versioned/pbench-results-host-info.URL%(version)s |
81 | | - |
82 | | -########################################################################### |
83 | | -# crontab roles |
84 | | -[pbench-results] |
85 | | -host = %(default-host)s |
86 | | -mailfrom = %(default-user)s@%(host)s |
87 | | -# CHANGE ME! |
88 | | -tasks = pbench-unpack-tarballs, pbench-copy-sosreports, pbench-edit-prefixes, pbench-index |
89 | | - |
90 | | -[pbench-backup] |
91 | | -host = %(default-host)s |
92 | | -mailfrom = %(default-user)s@%(host)s |
93 | | -tasks = pbench-backup-tarballs, pbench-verify-backup-tarballs |
94 | | - |
95 | | -[pbench-rsync-satellites] |
96 | | -# tasks = pbench-rsync-satellite, pbench-age-out-satellite |
97 | | -tasks = pbench-rsync-satellite |
98 | | -satellites = EC2 |
99 | | - |
100 | | -# the crontab making script will loop over satellites, creating rsync and age-out entries for each. |
101 | | -# satellites |
102 | | -[EC2] |
103 | | -prefix = EC2 |
104 | | -satellite-host = host.ec2.example.com |
105 | | -satellite-archive = /path/to/pbench/archive/fs-version-001 |
106 | | - |
107 | | -########################################################################### |
108 | | -# crontab tasks |
109 | | -[pbench-backup-tarballs] |
110 | | -crontab = 41 4 * * * flock -n %(deploy-lock-dir)s/pbench-backup-tarballs.lock %(deploy-script-dir)s/pbench-backup-tarballs |
111 | | - |
112 | | -[pbench-verify-backup-tarballs] |
113 | | -crontab = 59 4 * * Sunday flock -n %(deploy-lock-dir)s/pbench-verify-backup-tarballs.lock %(deploy-script-dir)s/pbench-verify-backup-tarballs %(deploy-pbench-backup-dir)s |
114 | | - |
115 | | -[pbench-unpack-tarballs] |
116 | | -crontab = * * * * * flock -n %(deploy-lock-dir)s/pbench-unpack-tarballs.lock %(deploy-script-dir)s/pbench-unpack-tarballs |
117 | | - |
118 | | -[pbench-copy-sosreports] |
119 | | -crontab = 41 * * * * flock -n %(deploy-lock-dir)s/pbench-copy-sosreports.lock %(deploy-script-dir)s/pbench-copy-sosreports |
120 | | - |
121 | | -[pbench-edit-prefixes] |
122 | | -crontab = * * * * * flock -n %(deploy-lock-dir)s/pbench-edit-prefixes.lock %(deploy-script-dir)s/pbench-edit-prefixes |
123 | | - |
124 | | -[pbench-index] |
125 | | -crontab = 26 * * * * flock -n %(deploy-lock-dir)s/pbench-index.lock %(deploy-script-dir)s/pbench-index |
126 | | - |
127 | | -[pbench-clean-up-dangling-results] |
128 | | -crontab = 51 3 * * * flock -n %(deploy-lock-dir)s/pbench-clean-up-dangling-results-links.lock %(deploy-script-dir)s/pbench-clean-up-dangling-results-links |
129 | | - |
130 | | -[pbench-rsync-satellite] |
131 | | -crontab = 51 23 * * * flock -n %(deploy-lock-dir)s/pbench-rsync-satellite.lock.$PREFIX %(deploy-script-dir)s/pbench-rsync-satellite $PREFIX $SATELLITE_HOST $SATELLITE_ARCHIVE |
132 | 19 |
|
133 | | -[pbench-age-out-satellite] |
134 | | -crontab = 51 1 * * 0 flock -n %(deploy-lock-dir)s/pbench-age-out-satellite.lock.$PREFIX %(deploy-script-dir)s/pbench-age-out-satellite $PREFIX $SATELLITE_HOST $SATELLITE_ARCHIVE |
| 20 | +# the rest will come from the default config file. |
| 21 | +[config] |
| 22 | +paths = /opt/pbench-server/lib/config |
| 23 | +files = pbench-server-default.cfg |
0 commit comments