Initial version of mirror module.
This commit is contained in:
parent
55694db8b3
commit
78b333cf6c
5 changed files with 402 additions and 0 deletions
2
mirror/templates/mirror.conf.erb
Normal file
2
mirror/templates/mirror.conf.erb
Normal file
|
@ -0,0 +1,2 @@
|
|||
SRC="<%= source %>"
|
||||
RSYNCOPTS="<%= rsync_options.join(' ') %>"
|
96
mirror/templates/report_mirror.conf.erb
Normal file
96
mirror/templates/report_mirror.conf.erb
Normal file
|
@ -0,0 +1,96 @@
|
|||
[global]
|
||||
# if enabled=0, no data is sent to the database
|
||||
enabled=1
|
||||
# server= is the URL to the MirrorManager XML-RPC interface
|
||||
server=https://admin.fedoraproject.org/mirrormanager/xmlrpc
|
||||
|
||||
|
||||
[site]
|
||||
# if enabled=0, no data about this site is sent to the database
|
||||
enabled=1
|
||||
# Name and Password fields need to match the Site name and password
|
||||
# fields you entered for your Site in the MirrorManager database at
|
||||
# https://admin.fedoraproject.org/mirrormanager
|
||||
name=<%= sitename %>
|
||||
password=<%= password %>
|
||||
|
||||
[host]
|
||||
# if enabled=0, no data about this host is sent to the database
|
||||
enabled=1
|
||||
# Name field need to match the Host name field you entered for your
|
||||
# Host in the MirrorManager database at
|
||||
# https://admin.fedoraproject.org/mirrormanager
|
||||
name=<%= hostname %>
|
||||
# if user_active=0, no data about this category is given to the public
|
||||
# This can be used to toggle between serving and not serving data,
|
||||
# such enabled during the nighttime (when you have more idle bandwidth
|
||||
# available) and disabled during the daytime.
|
||||
# By not specifying user_active, the database will not be updated.
|
||||
# user_active=1
|
||||
|
||||
[stats]
|
||||
# Stats are only sent when run with the -s option
|
||||
# and when this section is enabled.
|
||||
# This feature is not presently implemented
|
||||
enabled=0
|
||||
apache=/var/log/httpd/access_log
|
||||
vsftpd=/var/log/vsftpd.log
|
||||
# remember to enable log file and transfer logging in rsyncd.conf
|
||||
rsyncd=/var/log/rsyncd.log
|
||||
|
||||
|
||||
# Content Categories
|
||||
# These sections match the Categories for content tracked by MirrorManager.
|
||||
#
|
||||
# enabled=1 means information about this category will be sent to the database.
|
||||
# enabled=0, no data about this host is sent to the database. If the
|
||||
# database already has information for you for this Category, it will
|
||||
# remain unchanged. This can be used to update the database after you
|
||||
# have manually synced some infrequently-updated content, such as
|
||||
# historical releases.
|
||||
#
|
||||
# path= is the path on your local disk to the top-level directory for this Category
|
||||
|
||||
[Fedora Linux]
|
||||
<% if mirrors.include?('fedora') -%>
|
||||
enabled=1
|
||||
<% else -%>
|
||||
enabled=0
|
||||
<% end -%>
|
||||
path=/srv/mirrors/fedora
|
||||
|
||||
[Fedora EPEL]
|
||||
<% if mirrors.include?('epel') -%>
|
||||
enabled=1
|
||||
<% else -%>
|
||||
enabled=0
|
||||
<% end -%>
|
||||
path=/srv/mirrors/fedora-epel
|
||||
|
||||
# lesser used categories below
|
||||
|
||||
[Fedora Web]
|
||||
enabled=0
|
||||
path=/var/www/html/pub/fedora/web
|
||||
|
||||
[Fedora Secondary Arches]
|
||||
enabled=0
|
||||
path=/var/www/html/pub/fedora-secondary
|
||||
|
||||
[Fedora Other]
|
||||
enabled=0
|
||||
path=/var/www/html/pub/alt
|
||||
|
||||
# historical content
|
||||
|
||||
[Fedora Core]
|
||||
enabled=0
|
||||
path=/var/www/html/pub/fedora/linux/core
|
||||
|
||||
[Fedora Extras]
|
||||
enabled=0
|
||||
path=/var/www/html/pub/fedora/linux/extras
|
||||
|
||||
[Fedora Archive]
|
||||
enabled=0
|
||||
path=/var/www/html/pub/fedora-archive
|
Loading…
Add table
Add a link
Reference in a new issue