From 083c46bcae2054233d16ad94fb46c5958c6666d4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 2 Jun 2015 17:34:28 -0300 Subject: Use 'git' instead of 'gitolite' user --- manifests/gitosis.pp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'manifests/gitosis.pp') diff --git a/manifests/gitosis.pp b/manifests/gitosis.pp index a903c80..2463ea0 100644 --- a/manifests/gitosis.pp +++ b/manifests/gitosis.pp @@ -6,15 +6,15 @@ class git::gitosis inherits git { 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 git::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 git::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 git::gitosis inherits git { ensure => absent, force => true, backup => false, - require => User["gitosis"], + require => User["git"], } # mass update script -- cgit v1.2.3