[Mageia-sysadm] [806] use newly commited script to create shared git repository
root at mageia.org
root at mageia.org
Sun Jan 16 14:15:29 CET 2011
Revision: 806
Author: misc
Date: 2011-01-16 14:15:29 +0100 (Sun, 16 Jan 2011)
Log Message:
-----------
use newly commited script to create shared git repository
Modified Paths:
--------------
puppet/modules/git/manifests/init.pp
Modified: puppet/modules/git/manifests/init.pp
===================================================================
--- puppet/modules/git/manifests/init.pp 2011-01-16 13:15:28 UTC (rev 805)
+++ puppet/modules/git/manifests/init.pp 2011-01-16 13:15:29 UTC (rev 806)
@@ -43,16 +43,21 @@
#
}
- define repository($description = '') {
+ define repository($description = '',
+ $group ) {
+
+ include git::server
# http://eagleas.livejournal.com/18907.html
- # TODO --shared=group + set g+ws
- exec { "git init --bare $name":
+ # TODO group permission should be handled here too
+ exec { "/usr/local/bin/create_git_repo.sh $name":
+ user => root,
+ group => $group
creates => $name,
}
file { "$name/git-daemon-export-ok":
ensure => present,
- requires => Exec["git init --bare $name"]
+ requires => Exec["/usr/local/bin/create_git_repo.sh $name"]
}
file { "$name/description":
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110116/cd8f3497/attachment.html>
More information about the Mageia-sysadm
mailing list