diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/git/manifests/init.pp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/modules/git/manifests/init.pp b/modules/git/manifests/init.pp index 34428e5c..78d780cc 100644 --- a/modules/git/manifests/init.pp +++ b/modules/git/manifests/init.pp @@ -43,16 +43,21 @@ class git { # } - 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": |