From: Silvio Rhatto Date: Sat, 22 Dec 2012 19:17:53 +0000 (-0200) Subject: Fixing git daemon config X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=688256dfdd7a094a2bdfea8c23570257178cca8c;p=puppet-git.git Fixing git daemon config --- diff --git a/manifests/git-daemon.pp b/manifests/git-daemon.pp index 5ed845a..5a5e4fb 100644 --- a/manifests/git-daemon.pp +++ b/manifests/git-daemon.pp @@ -11,7 +11,7 @@ class git-daemon inherits git-manager { # git-daemon config in inetd line { "git-daemon-inetd": file => "/etc/inetd.conf", - line => "git stream tcp nowait gitosis /usr/bin/git git daemon --inetd --verbose --base-path=/var/git/repositories /var/git/repositories", + line => "git stream tcp nowait $git_server_implementation /usr/bin/git git daemon --inetd --verbose --base-path=/var/git/repositories /var/git/repositories", ensure => present, } } diff --git a/manifests/git-manager.pp b/manifests/git-manager.pp index d3445d0..52e546b 100644 --- a/manifests/git-manager.pp +++ b/manifests/git-manager.pp @@ -1,4 +1,8 @@ class git-manager { + case $git_server_implementation { + '': { $git_server_implementation = 'gitolite' } + } + case $git_server_implementation { 'gitosis': { include gitosis diff --git a/manifests/gitweb.pp b/manifests/gitweb.pp index 8d07e67..045787d 100644 --- a/manifests/gitweb.pp +++ b/manifests/gitweb.pp @@ -1,10 +1,6 @@ # This class handles a gitweb installation. class gitweb inherits git-manager { - case $git_server_implementation { - '': { $git_server_implementation = 'gitolite' } - } - # the needed packages package { gitweb: ensure => installed }