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:
parent
5a3898ed1e
commit
9173bc92d1
14
modules/cgit/files/git.xinetd
Normal file
14
modules/cgit/files/git.xinetd
Normal 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
|
||||
}
|
@ -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'],
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user