# 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,
}
}
class git-manager {
+ case $git_server_implementation {
+ '': { $git_server_implementation = 'gitolite' }
+ }
+
case $git_server_implementation {
'gitosis': {
include gitosis
# 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 }