aboutsummaryrefslogtreecommitdiffstats
path: root/modules/gitmirror/manifests/init.pp
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-02-09 13:55:50 +0000
committerColin Guthrie <colin@mageia.org>2014-02-09 13:55:50 +0000
commit45c3e15f063ba493f67e6c3e67780118c86bb1bd (patch)
treee6f82243a318f2f0f6793ed1409a35306f074ebf /modules/gitmirror/manifests/init.pp
parent07a56dfcfdfd9ccdf97454e589492eb8f6fb7223 (diff)
downloadpuppet-45c3e15f063ba493f67e6c3e67780118c86bb1bd.tar
puppet-45c3e15f063ba493f67e6c3e67780118c86bb1bd.tar.gz
puppet-45c3e15f063ba493f67e6c3e67780118c86bb1bd.tar.bz2
puppet-45c3e15f063ba493f67e6c3e67780118c86bb1bd.tar.xz
puppet-45c3e15f063ba493f67e6c3e67780118c86bb1bd.zip
Add a new system to ensure our git repos are mirrored properly.
This is a simple python daemon that I wrote which can be 'pinged' and told to update (or freshly clone) given git repos. Deploy this script on alamut (not started automatically yet)
Diffstat (limited to 'modules/gitmirror/manifests/init.pp')
-rw-r--r--modules/gitmirror/manifests/init.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/gitmirror/manifests/init.pp b/modules/gitmirror/manifests/init.pp
new file mode 100644
index 00000000..4ab44c0a
--- /dev/null
+++ b/modules/gitmirror/manifests/init.pp
@@ -0,0 +1,13 @@
+class gitmirror {
+ mga_common::local_script { 'on-the-pull':
+ content => template('gitmirror/on-the-pull'),
+ }
+ file { '/etc/init.d/on-the-pull':
+ content => template('gitmirror/on-the-pull.init'),
+ mode => 755,
+ }
+
+ mga_common::local_script { 'gitmirror-sync-metadata':
+ content => template('gitmirror/rsync-metadata.sh'),
+ }
+}