Merge "Add git-daemon to cgit server."
This commit is contained in:
commit
13e6c73316
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