Merge "Add git-daemon to cgit server."

This commit is contained in:
Jenkins 2013-08-06 22:06:10 +00:00 committed by Gerrit Code Review
commit 13e6c73316
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# default: off
# description: The git dæmon allows git repositories to be exported using \
# the git:// protocol.
service git
{
disable = no
socket_type = stream
wait = no
user = nobody
server = /usr/libexec/git-core/git-daemon
server_args = --base-path=/var/lib/git --export-all --syslog --inetd --verbose /var/lib/git
log_on_failure += USERID
}

View File

@ -71,4 +71,17 @@ class cgit {
source => 'puppet:///modules/cgit/cgit.conf', source => 'puppet:///modules/cgit/cgit.conf',
mode => '0644' mode => '0644'
} }
file { '/etc/xinetd.d/git':
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/cgit/git.xinetd',
}
service { 'xinetd':
ensure => running,
subscribe => File['/etc/xinetd.d/git'],
}
} }