From 2f93ac4ad08c6152463beecd5dec109da00bdda6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 2 Jun 2015 17:49:17 -0300 Subject: Use 'git' instead of 'gitolite' user --- files/sudoers | 2 +- manifests/repo.pp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/files/sudoers b/files/sudoers index 71b8ab8..6236cbf 100644 --- a/files/sudoers +++ b/files/sudoers @@ -2,4 +2,4 @@ Cmnd_Alias PUPPETUPDATE = /usr/local/sbin/update-puppet-conf.sh # User privilege specification -gitolite ALL=(puppet) NOPASSWD:PUPPETUPDATE +git ALL=(puppet) NOPASSWD:PUPPETUPDATE diff --git a/manifests/repo.pp b/manifests/repo.pp index 30c31dd..1321d1b 100644 --- a/manifests/repo.pp +++ b/manifests/repo.pp @@ -9,15 +9,15 @@ class puppet::repo( exec { "make-puppet-repo": command => "/bin/sh -c 'mkdir -p /var/git/repositories/puppet.git && cd /var/git/repositories/puppet.git && git --bare init'", unless => "/bin/sh -c '[ -e /var/git/repositories/puppet.git ]'", - user => gitolite, - require => [ User['gitolite'], File['/var/git/repositories'] ], + user => git, + require => [ User['git'], File['/var/git/repositories'] ], } # use a post-update hook file { '/var/git/repositories/puppet.git/hooks/post-update': mode => 0750, - owner => gitolite, - group => gitolite, + owner => git, + group => git, ensure => $method ? { 'cron' => absent, default => $ensure, -- cgit v1.2.3