From 24d0d1d393e65ecc290e5ce2b216fb6c2412b286 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 21 Jan 2011 14:10:24 +0000 Subject: - add a main mirror modules ( mirror was already used ), and add content there ( mainly READMEs, and directory to ease replication of a fake test mirror on vm ) --- deployment/main_mirror/files/README | 24 +++++++++++ .../main_mirror/files/mirror/README.mirroring | 48 ++++++++++++++++++++++ deployment/main_mirror/files/mirror/README.paths | 2 + deployment/main_mirror/manifests/init.pp | 28 +++++++++++++ 4 files changed, 102 insertions(+) create mode 100644 deployment/main_mirror/files/README create mode 100644 deployment/main_mirror/files/mirror/README.mirroring create mode 100644 deployment/main_mirror/files/mirror/README.paths create mode 100644 deployment/main_mirror/manifests/init.pp 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/README.mirroring b/deployment/main_mirror/files/mirror/README.mirroring new file mode 100644 index 00000000..213c10fe --- /dev/null +++ b/deployment/main_mirror/files/mirror/README.mirroring @@ -0,0 +1,48 @@ + __ __ _ +| \/ | __ _ __ _ ___(_) __ _ +| |\/| |/ _` |/ _` |/ _ \ |/ _` | +| | | | (_| | (_| | __/ | (_| | +|_| |_|\__,_|\__, |\___|_|\__,_| + |___/ + +This document describe the way to do a Mageia Mirror. + +1) Prerequise + +The expect size is around 700GB. + +You need rsync software to synchronise the tree. + +2) Official source + +If you plan to create a public we encourage you to use one our Tier1 mirror. + +This servers synchronise the tree directly from the Mageia rsync server. + + o rsync://distrib-coffee.ipsl.jussieu.fr/mageia/ + located in Paris (France) + +3) Rsync options + +Ensure you're using a least this options: + + -a -H + +We apreciate if theses options are also used: + + --delete-after -S + +Don't use compression and checksum option, they will overload the remote +server + +4) Automate + +The tree must be synchronize at least every 2 hours. + +Please ensure another rsync process is not started while first one is +still running. Use a lock file. + +5) Registering your mirror + +TODO + diff --git a/deployment/main_mirror/files/mirror/README.paths b/deployment/main_mirror/files/mirror/README.paths new file mode 100644 index 00000000..1331e8df --- /dev/null +++ b/deployment/main_mirror/files/mirror/README.paths @@ -0,0 +1,2 @@ +Description of the path on the mirror + diff --git a/deployment/main_mirror/manifests/init.pp b/deployment/main_mirror/manifests/init.pp new file mode 100644 index 00000000..cb00d180 --- /dev/null +++ b/deployment/main_mirror/manifests/init.pp @@ -0,0 +1,28 @@ +class main_mirror { + $mirror = "/distrib" + file { "$mirror": + ensure => directory, + } + + file { "$mirror/README": + ensure => present, + source => "puppet:///modules/main_mirror/README" + } + + file { "$mirror/mirror": + ensure => directory, + + } + + file { "$mirror/mirror/README.mirroring": + ensure => present, + source => "puppet:///modules/main_mirror/mirror/README.mirroring" + } + + file { "$mirror/mirror/README.paths": + ensure => present, + source => "puppet:///modules/main_mirror/mirror/README.paths" + } + + +} -- cgit v1.2.1