summaryrefslogtreecommitdiffstats
path: root/doc/appendix/configuration
diff options
context:
space:
mode:
authorFabian Affolter <fabian@bernewireless.net>2010-11-09 00:15:43 +0100
committerFabian Affolter <fabian@bernewireless.net>2010-11-09 00:15:43 +0100
commit391406c85d86dc931f3fdb2483a14d0f1e7e6355 (patch)
tree97fe00f6a9dcf5d821139766b213418d57b5d31b /doc/appendix/configuration
parent553c693618321fad2a88030b16d42d3253befaec (diff)
downloadbcfg2-391406c85d86dc931f3fdb2483a14d0f1e7e6355.tar.gz
bcfg2-391406c85d86dc931f3fdb2483a14d0f1e7e6355.tar.bz2
bcfg2-391406c85d86dc931f3fdb2483a14d0f1e7e6355.zip
doc: Massive update
Diffstat (limited to 'doc/appendix/configuration')
-rw-r--r--doc/appendix/configuration/mrepo.txt71
1 files changed, 71 insertions, 0 deletions
diff --git a/doc/appendix/configuration/mrepo.txt b/doc/appendix/configuration/mrepo.txt
new file mode 100644
index 000000000..0633af98e
--- /dev/null
+++ b/doc/appendix/configuration/mrepo.txt
@@ -0,0 +1,71 @@
+.. -*- mode: rst -*-
+
+.. _mrepo: http://dag.wieers.com/home-made/mrepo/
+
+.. _appendix-configuration-mrepo:
+
+mrepo
+=====
+
+This section describes how to setup an `mrepo`_ mirror.
+
+`mrepo`_ builds a local APT/Yum RPM repository from local ISO files,
+downloaded updates, and extra packages from 3rd party repositories. It
+takes care of setting up the ISO files, downloading the RPMs,
+configuring HTTP access and providing PXE/TFTP resources for remote
+network installations.
+
+
+Sample mrepo configuration
+--------------------------
+
+::
+
+ ### Configuration file for mrepo
+
+ ### The [main] section allows to override mrepo's default settings
+ ### The mrepo-example.conf gives an overview of all the possible settings
+ [main]
+ srcdir = /var/mrepo/src
+ wwwdir = /var/www/mrepo
+ confdir = /etc/mrepo.conf.d
+ arch = x86_64
+
+ mailto = <youremail>
+ smtp-server = localhost
+
+ hardlink = yes
+ shareiso = yes
+
+ rsync-timeout = 3600
+
+ [centos5]
+ name = CentOS Server $release ($arch)
+ release = 5
+ arch = x86_64
+ metadata = yum repomd
+
+ # ISO images
+ iso = centos-$release-server-$arch-DVD.iso
+
+ #addons = rsync://mirrors.kernel.org/centos/$release/addons/$arch/RPMS
+ centosplus = rsync://mirrors.kernel.org/centos/$release/centosplus/$arch/RPMS
+ extras = rsync://mirrors.kernel.org/centos/$release/extras/$arch/RPMS
+ #fasttrack = rsync://mirrors.kernel.org/centos/$release/fasttrack/$arch/RPMS
+ os = rsync://mirrors.kernel.org/centos/$release/os/$arch/CentOS
+ updates = rsync://mirrors.kernel.org/centos/$release/updates/$arch/RPMS
+ dag = http://apt.sw.be/redhat/el$release/en/$arch/RPMS.dag
+ dries = http://apt.sw.be/redhat/el$release/en/$arch/RPMS.dries
+ rpmforge = http://apt.sw.be/redhat/el$release/en/$arch/RPMS.rpmforge
+
+ ### Any other section is considered a definition for a distribution
+ ### You can put distribution sections in /etc/mrepo.conf.d/
+ ### Examples can be found in the documentation at:
+ ### /usr/share/doc/mrepo-0.8.6/dists/.
+
+Update the repositories
+-----------------------
+
+To update your local repository, just lauch the following command ::
+
+ mrepo -ug