aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/manifests/init.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-01-14 02:40:31 +0000
committerMichael Scherer <misc@mageia.org>2011-01-14 02:40:31 +0000
commit72e8f34f46626eccbba4904b431bb5e86ca6932a (patch)
tree0832f810fffefaddef446b69fcd5f29904a85685 /modules/git/manifests/init.pp
parent634b7f4f0b1174a064f3bf77481e23e504599f62 (diff)
downloadpuppet-72e8f34f46626eccbba4904b431bb5e86ca6932a.tar
puppet-72e8f34f46626eccbba4904b431bb5e86ca6932a.tar.gz
puppet-72e8f34f46626eccbba4904b431bb5e86ca6932a.tar.bz2
puppet-72e8f34f46626eccbba4904b431bb5e86ca6932a.tar.xz
puppet-72e8f34f46626eccbba4904b431bb5e86ca6932a.zip
allow to update the description of the repository
Diffstat (limited to 'modules/git/manifests/init.pp')
-rw-r--r--modules/git/manifests/init.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/git/manifests/init.pp b/modules/git/manifests/init.pp
index d5197d02..93c8fb32 100644
--- a/modules/git/manifests/init.pp
+++ b/modules/git/manifests/init.pp
@@ -27,7 +27,7 @@ class git {
# how do we handle commit permission ?
}
- define repository {
+ define repository($description = '') {
exec { "git init --bare $name":
creates => $name,
}
@@ -36,6 +36,11 @@ class git {
ensure => present,
requires => Exec["git init --bare $name"]
}
+
+ file { "$name/description":
+ ensure => present,
+ content => $description
+ }
}
class client inherits common {