aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-12-27 11:16:36 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-12-27 11:16:36 -0200
commit8336389fccf1eef690b41d50e1ae49ca2207b62b (patch)
tree285379c4ebf8c9517f76a0c6ef3c685a8d913efe
parentf046561d4f7ca5eb41ccf6014ff9164d9a7c9eb3 (diff)
downloadpuppet-git-8336389fccf1eef690b41d50e1ae49ca2207b62b.tar.gz
puppet-git-8336389fccf1eef690b41d50e1ae49ca2207b62b.tar.bz2
Adding resource for /var/git/repositories
-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