aboutsummaryrefslogtreecommitdiff
path: root/manifests/gitosis.pp
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2011-03-11 14:53:39 -0300
committerdrebs <drebs@riseup.net>2011-03-11 14:53:39 -0300
commit01b2048dbf02ac726dabde5e846b9d6ac9aff0e6 (patch)
tree28f13f07a483a73ffcbfb25e4aba0c40f3d656bb /manifests/gitosis.pp
downloadpuppet-bootstrap-01b2048dbf02ac726dabde5e846b9d6ac9aff0e6.tar.gz
puppet-bootstrap-01b2048dbf02ac726dabde5e846b9d6ac9aff0e6.tar.bz2
initial recommit
Diffstat (limited to 'manifests/gitosis.pp')
-rw-r--r--manifests/gitosis.pp28
1 files changed, 28 insertions, 0 deletions
diff --git a/manifests/gitosis.pp b/manifests/gitosis.pp
new file mode 100644
index 0000000..45f63d3
--- /dev/null
+++ b/manifests/gitosis.pp
@@ -0,0 +1,28 @@
+class gitosis {
+ # directory for gitosis user and repositories
+ file { "/var/git":
+ ensure => directory,
+ mode => 0755,
+ owner => gitosis,
+ group => gitosis;
+ }
+
+ # the needed packages
+ package { [ "gitosis", "sudo", "git"]: ensure => installed; }
+
+ # alters the user's home dir
+ user { gitosis:
+ allowdupe => false,
+ comment => "git repository hosting,,,",
+ ensure => present,
+ home => "/var/git",
+ shell => "/bin/sh";
+ }
+
+ # tries to get rid of ugly directory structure
+ file { "/srv/gitosis":
+ ensure => absent,
+ force => true;
+ }
+ file { "/srv": ensure => absent; }
+}