diff options
Diffstat (limited to 'deployment/main_mirror')
| -rw-r--r-- | deployment/main_mirror/files/README | 24 | ||||
| -rw-r--r-- | deployment/main_mirror/files/mirror/mirror.readme | 79 | ||||
| -rw-r--r-- | deployment/main_mirror/files/mirror/paths.readme | 34 | ||||
| -rw-r--r-- | deployment/main_mirror/manifests/init.pp | 21 | ||||
| -rw-r--r-- | deployment/main_mirror/templates/rsyncd.conf | 31 |
5 files changed, 189 insertions, 0 deletions
diff --git a/deployment/main_mirror/files/README b/deployment/main_mirror/files/README new file mode 100644 index 00000000..10ffe4c7 --- /dev/null +++ b/deployment/main_mirror/files/README @@ -0,0 +1,24 @@ +Description of the directory + +bootstrap +--------- + +Used only for the initial release and bootstrapping. + +mageiatools +----------- + +Mandriva repository holding our own tools, should be merged +with cooker ( and others distribution too ). + +mandriva +-------- + +Local 2010.1 mandriva mirror used for initial bootstrapping, should be +removed once bootstrap is finished. + +mirror +------ + +Main mageia mirror, shared on rsync for everybody. + diff --git a/deployment/main_mirror/files/mirror/mirror.readme b/deployment/main_mirror/files/mirror/mirror.readme new file mode 100644 index 00000000..5846d12e --- /dev/null +++ b/deployment/main_mirror/files/mirror/mirror.readme @@ -0,0 +1,79 @@ + __ __ _ +| \/ | __ _ __ _ ___(_) __ _ +| |\/| |/ _` |/ _` |/ _ \ |/ _` | +| | | | (_| | (_| | __/ | (_| | +|_| |_|\__,_|\__, |\___|_|\__,_| + |___/ + +This document describes the way to implement a Mageia Mirror. + +1) Prerequisite +--------------- + +The expected size of the mirror is around 1.8-2TB. +The mirror only contains the last 2 stable releases + the development +branch called cauldron. + +For older unsupported releases, you can find them at the archive +provided by distrib-coffee mirror: +https://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia-archive/ + +Look here to see the (planned) end of support date for each version: +https://www.mageia.org/en/support/#lifecycle + +You need rsync software to synchronise the tree. + +2) Official source +------------------ + +For a public mirror, we encourage you to use one of our Tier1 mirrors. + +The servers below synchronise the tree directly from the Mageia rsync server. + + Check https://mirrors.mageia.org/ for their bandwidths. + Check https://mirrors.mageia.org/status for their current statuses. + + o rsync://mageia.c3sl.ufpr.br/mageia/ + located in Curitiba (Brasil) + o rsync://mirrors.kernel.org/mirrors/mageia/ + located in USA and Europe + o rsync://mirror.accum.se/mirror/mageia/ + located in Umea (Sweden) + o rsync://mirror.math.princeton.edu/pub/mageia/ + located in Princeton (USA) + +3) Rsync options +---------------- + +Ensure you're using at least these options: + + -a -H + +We appreciate if, in addition, you also add the options: + + --delete-after -S + +Don't use the compression and checksum options, they create excessive +load on the remote server + +4) Automated update procedure +----------------------------- + +The tree must be synchronized at least every 2 hours. +Tier 1 mirrors should preferably sync at least every hour. + +Please ensure that another rsync process is not started while a first +one is still running. Use a lock file. + +5) Registering your mirror +-------------------------- + +Go to https://mirrors.mageia.org/new and enter all possible protocols. + +6) Subscribe to the mirrors-announce mailing list +------------------------------------------------- + +To get infos about new releases uploaded to the mirrors and other mirror +updates, you can subscribe to the mirrors-announce mailing list : +https://ml.mageia.org/wwsympa-wrapper.fcgi/info/mirrors-announce + diff --git a/deployment/main_mirror/files/mirror/paths.readme b/deployment/main_mirror/files/mirror/paths.readme new file mode 100644 index 00000000..f8066850 --- /dev/null +++ b/deployment/main_mirror/files/mirror/paths.readme @@ -0,0 +1,34 @@ +Description of the path on the mirror + +distrib +------- + +Contains the supported and developpement releases of +the distribution. + +Cauldron is the name of the developpement release. + +X (a number) are the stable releases. + +iso +--- + +Contains the various isos used for burning and installation. + +mageia_timestamp +---------------- + +Contains the timestamp, filled by cron every 5 minutes, used to check mirrors +freshness. + +people +------ + +Contains various file, as pushed by Mageia members. The goal and usage are not +yet decided. + +software +-------- + +Contains the various tarballs of software produced by Mageia, to be reused +on others systems and distributions. diff --git a/deployment/main_mirror/manifests/init.pp b/deployment/main_mirror/manifests/init.pp new file mode 100644 index 00000000..9b26a64d --- /dev/null +++ b/deployment/main_mirror/manifests/init.pp @@ -0,0 +1,21 @@ +class main_mirror { + # FIXME shouldn't the various code in this module ? + include mirror::main + + class { 'rsyncd': + rsyncd_conf => 'main_mirror/rsyncd.conf' + } + + $mirror = '/distrib' + file { [$mirror, + "${mirror}/mirror", + "${mirror}/archive"]: + ensure => directory, + } + + file { + "${mirror}/README": source => 'puppet:///modules/main_mirror/README'; + "${mirror}/mirror/mirror.readme": source => 'puppet:///modules/main_mirror/mirror/mirror.readme'; + "${mirror}/mirror/paths.readme": source => 'puppet:///modules/main_mirror/mirror/paths.readme'; + } +} diff --git a/deployment/main_mirror/templates/rsyncd.conf b/deployment/main_mirror/templates/rsyncd.conf new file mode 100644 index 00000000..9fc93860 --- /dev/null +++ b/deployment/main_mirror/templates/rsyncd.conf @@ -0,0 +1,31 @@ +# $Id$ + +uid = nobody +gid = nogroup + +[mageia] + path = /distrib/mirror/ + comment = Mageia Mirror Tree + hosts allow = \ + 10.42.0.0/24 \ + 2a02:2178:2:7::/64 \ + rabbit.<%= @domain %> \ + sucuk.<%= @domain %> \ + distrib-coffee.ipsl.jussieu.fr \ + ftp.proxad.net \ + jobbot0.ibiblio.org \ + jobbot1.ibiblio.org \ + mirror.math.princeton.edu \ + poincare.accum.se \ + poincare.acc.umu.se \ + sagres.c3sl.ufpr.br \ + sv.mirrors.kernel.org \ + ny.mirrors.kernel.org \ + 147.75.69.246 \ + 2001:14ba:a417:eb00::1 \ + 2001:14ba:a417:eb00::2 + +[git] + path = /git + comment = Mageia Git repos + hosts allow = sucuk.<%= @domain %> |
