aboutsummaryrefslogtreecommitdiff
path: root/manifests/gitosis.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/gitosis.pp')
-rw-r--r--manifests/gitosis.pp22
1 files changed, 11 insertions, 11 deletions
diff --git a/manifests/gitosis.pp b/manifests/gitosis.pp
index c446918..2463ea0 100644
--- a/manifests/gitosis.pp
+++ b/manifests/gitosis.pp
@@ -1,20 +1,20 @@
# This class handles a gitosis installation, with /var/git as the root for
# git repositories.
-class gitosis inherits git {
+class git::gitosis inherits git {
# directory for gitosis user and repositories
file { "/var/git":
ensure => directory,
mode => 0755,
- owner => gitosis,
- group => gitosis,
+ owner => git,
+ group => git,
}
# repositories folder
file { "/var/git/repositories":
ensure => directory,
- owner => gitosis,
- group => gitosis,
+ owner => git,
+ group => git,
mode => 0755,
recurse => false,
}
@@ -31,22 +31,22 @@ class gitosis inherits git {
package { "gitosis": ensure => installed }
# ensures that the group exists
- group { "gitosis":
+ group { "git":
ensure => present,
allowdupe => false,
require => Package["gitosis"],
}
# alters the user's home dir
- user { "gitosis":
+ user { "git":
allowdupe => false,
comment => "git repository hosting,,,",
ensure => present,
home => "/var/git",
shell => "/bin/sh",
- gid => "gitosis",
+ gid => "git",
groups => [ "puppet" ],
- require => Group["gitosis"],
+ require => Group["git"],
}
# tries to get rid of ugly directory structure
@@ -54,7 +54,7 @@ class gitosis inherits git {
ensure => absent,
force => true,
backup => false,
- require => User["gitosis"],
+ require => User["git"],
}
# we also don't need /var/gitosis
@@ -62,7 +62,7 @@ class gitosis inherits git {
ensure => absent,
force => true,
backup => false,
- require => User["gitosis"],
+ require => User["git"],
}
# mass update script