diff options
author | Michael Scherer <misc@mageia.org> | 2011-07-19 23:35:45 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-07-19 23:35:45 +0000 |
commit | dff0746f1e63f2ba7575936289bdfd2cbd90f18f (patch) | |
tree | 84f675a534cde32ae11e3371eabf87a1dc372ef4 /modules/git | |
parent | 7eef4507d80c6aa9321c441c20b8a1ffab71f9ee (diff) | |
download | puppet-dff0746f1e63f2ba7575936289bdfd2cbd90f18f.tar puppet-dff0746f1e63f2ba7575936289bdfd2cbd90f18f.tar.gz puppet-dff0746f1e63f2ba7575936289bdfd2cbd90f18f.tar.bz2 puppet-dff0746f1e63f2ba7575936289bdfd2cbd90f18f.tar.xz puppet-dff0746f1e63f2ba7575936289bdfd2cbd90f18f.zip |
add a parameter for the description
Diffstat (limited to 'modules/git')
-rw-r--r-- | modules/git/manifests/init.pp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/git/manifests/init.pp b/modules/git/manifests/init.pp index 6c0b1553..01410b94 100644 --- a/modules/git/manifests/init.pp +++ b/modules/git/manifests/init.pp @@ -99,12 +99,18 @@ class git { } define mirror($source, + $description, $refresh = '*/5') { exec { "/usr/bin/git clone $source $name": alias => "git mirror $name", creates => $name, } + + file { "$name/description": + ensure => present, + content => $description, + } cron { "update $name": command => "/usr/bin/git pull $name" , |