aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/main_mirror
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-01-21 14:10:24 +0000
committerMichael Scherer <misc@mageia.org>2011-01-21 14:10:24 +0000
commit24d0d1d393e65ecc290e5ce2b216fb6c2412b286 (patch)
tree868e2f75ca92295a3444021fcf899cd02bcc393f /deployment/main_mirror
parent8ec90be493a658a4928370e1a578aa37989eca0e (diff)
downloadpuppet-24d0d1d393e65ecc290e5ce2b216fb6c2412b286.tar
puppet-24d0d1d393e65ecc290e5ce2b216fb6c2412b286.tar.gz
puppet-24d0d1d393e65ecc290e5ce2b216fb6c2412b286.tar.bz2
puppet-24d0d1d393e65ecc290e5ce2b216fb6c2412b286.tar.xz
puppet-24d0d1d393e65ecc290e5ce2b216fb6c2412b286.zip
- 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 )
Diffstat (limited to 'deployment/main_mirror')
-rw-r--r--deployment/main_mirror/files/README24
-rw-r--r--deployment/main_mirror/files/mirror/README.mirroring48
-rw-r--r--deployment/main_mirror/files/mirror/README.paths2
-rw-r--r--deployment/main_mirror/manifests/init.pp28
4 files changed, 102 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/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"
+ }
+
+
+}