diff options
author | andreas <andreas@immerda.ch> | 2009-02-09 16:14:39 +0000 |
---|---|---|
committer | andreas <andreas@immerda.ch> | 2009-02-09 16:14:39 +0000 |
commit | 7e428072a22269d2a7ffe2955a2139a6bdb71bf7 (patch) | |
tree | 5b8650362e0381653cbff8286dd2e5d8d7685ffb | |
parent | 77255d4f82f2edf2439afec2ffb884506ceca795 (diff) |
extend git-clone with runas user
-rw-r--r-- | manifests/defines.pp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/defines.pp b/manifests/defines.pp index b88b19c..892b51e 100644 --- a/manifests/defines.pp +++ b/manifests/defines.pp @@ -52,11 +52,15 @@ define git::web::repo::lighttpd( define git::clone( $git_repo, - $projectroot + $projectroot, + $runas_user='root', + $runas_group='0' ){ exec {"git-clone": command => "git-clone --no-hardlinks $git_repo $projectroot", creates => "$projectroot/.git", + user => $runas_user, + group => $runas_group, } } |