aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {