diff options
-rw-r--r-- | manifests/defines.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/defines.pp b/manifests/defines.pp index 5f71dd5..b88b19c 100644 --- a/manifests/defines.pp +++ b/manifests/defines.pp @@ -49,3 +49,14 @@ define git::web::repo::lighttpd( notify => Service['lighttpd'], } } + +define git::clone( + $git_repo, + $projectroot +){ + exec {"git-clone": + command => "git-clone --no-hardlinks $git_repo $projectroot", + creates => "$projectroot/.git", + } +} + |