Add git-daemon to cgit server.

* modules/cgit/files/git.xinetd: Configure git xinetd

* modules/cgit/manifests/init.pp: Install git xinetd file and make sure the
* service is running.

Change-Id: I7686b1cacd257e2aa519885b969272055a74e48e
This commit is contained in:
Clark Boylan 2013-07-10 17:39:30 -07:00 committed by Elizabeth Krumbach
parent 5a3898ed1e
commit 9173bc92d1
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',
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'],
}
}