-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
47 lines (36 loc) · 1.55 KB
/
main.yml
1
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
36
37
38
39
40
41
42
43
44
45
46
# Defaults variables for role mirror-buildlogs
# default path where to sync content to
mirror_buildlogs_local_path: /home/centos-buildlogs/
# Default user owning all the files
mirror_buildlogs_local_user: centos
# From which node do we want to rsync from
mirror_buildlogs_rsync_from: main.centos.org
# Do we want to redirect to CDN
mirror_buildlogs_cdn_redirect: True
mirror_buildlogs_cdn_master: my.main.master.centos.org # Vhost that CDN will fetch from
mirror_buildlogs_cdn_redirect_to: https://cdn.centos.org
# Apache rewrite rules - to be overridden by inventory
# Simple "block" that will be added to httpd, so one rule per line
# This is so just an example
mirror_buildlogs_rewrite_rules: |
RewriteRule "^/rolling/7/isos/x86_64/CentOS-7-x86_64-DVD.iso" "-" [F,L]
RewriteCond %{HTTP_USER_AGENT} '^Mozilla/5.0 \(Windows NT 6.1; WOW64; rv:40.0\) Gecko/20100101 Firefox/40.1'
RewriteRule "^/(.*)/(.*\.iso)$" "-" [F,L]
# using mod_ratelimit on httpd to limit bw usage?
mirror_buildlogs_mod_ratelimit: True
mirror_buildlogs_rate_limit: 536
# Header file for httpd autoindex
mirror_buildlogs_header_page:
title: 'CentOS Buildlogs Mirror'
title_lead: ''
with_manifestation: 'CentOS Buildlogs Mirror'
with_content:
- element: p
element_class: alert alert-warning
element_content: >-
This server contains a mix of raw/unsigned packages and/or build logs <br>
It should be used mainly for testing purposes<br>
# Zabbix/monitoring part
mirror_buildlogs_zabbix_templates: []
mirror_buildlogs_zabbix_groups:
- CentOS buildlogs mirrors