diff options
author | Michael Scherer <misc@mageia.org> | 2011-01-16 13:15:29 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-01-16 13:15:29 +0000 |
commit | 9f4053255be9c27280b8c2fd8cbb9538702f9432 (patch) | |
tree | fc62bfc380f6eaf683c9a884cc63f01f5ecb48b5 /modules/git | |
parent | ba49d46bd1174eb9d53482d60ff23abf3fe0ba1b (diff) | |
download | puppet-9f4053255be9c27280b8c2fd8cbb9538702f9432.tar puppet-9f4053255be9c27280b8c2fd8cbb9538702f9432.tar.gz puppet-9f4053255be9c27280b8c2fd8cbb9538702f9432.tar.bz2 puppet-9f4053255be9c27280b8c2fd8cbb9538702f9432.tar.xz puppet-9f4053255be9c27280b8c2fd8cbb9538702f9432.zip |
use newly commited script to create shared git repository
Diffstat (limited to 'modules/git')
-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": |