aboutsummaryrefslogtreecommitdiff
path: root/manifests/gitosis.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/gitosis.pp')
-rw-r--r--manifests/gitosis.pp16
1 files changed, 13 insertions, 3 deletions
diff --git a/manifests/gitosis.pp b/manifests/gitosis.pp
index c433c8d..f4923c7 100644
--- a/manifests/gitosis.pp
+++ b/manifests/gitosis.pp
@@ -10,11 +10,21 @@ class gitosis inherits git {
group => gitosis,
}
+ # repositories folder
+ file { "/var/git/repositories":
+ ensure => present,
+ owner => gitosis,
+ group => gitosis,
+ mode => 0755,
+ recurse => false,
+ }
+
# symbolic link
file { "/var/cache/git":
- ensure => "/var/git/repositories",
- force => true,
- backup => false,
+ ensure => "/var/git/repositories",
+ force => true,
+ backup => false,
+ require => File['/var/git/repositories'],
}
# the needed packages