aboutsummaryrefslogtreecommitdiff
path: root/manifests/gitosis.pp
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2011-03-11 18:41:05 -0300
committerdrebs <drebs@riseup.net>2011-03-11 18:41:05 -0300
commitf7c1d1a879c81cd5ea328b191ab6729f05a03984 (patch)
tree913e8a0ff05b9dbb6f157acc017d79869775496d /manifests/gitosis.pp
parent01b2048dbf02ac726dabde5e846b9d6ac9aff0e6 (diff)
downloadpuppet-bootstrap-f7c1d1a879c81cd5ea328b191ab6729f05a03984.tar.gz
puppet-bootstrap-f7c1d1a879c81cd5ea328b191ab6729f05a03984.tar.bz2
using puppet apply
Diffstat (limited to 'manifests/gitosis.pp')
-rw-r--r--manifests/gitosis.pp30
1 files changed, 3 insertions, 27 deletions
diff --git a/manifests/gitosis.pp b/manifests/gitosis.pp
index 45f63d3..14bd1dc 100644
--- a/manifests/gitosis.pp
+++ b/manifests/gitosis.pp
@@ -1,28 +1,4 @@
-class gitosis {
- # directory for gitosis user and repositories
- file { "/var/git":
- ensure => directory,
- mode => 0755,
- owner => gitosis,
- group => gitosis;
- }
+import "config.pp"
+import "git"
- # 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; }
-}
+include gitosis