26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'modules/git/manifests/daemon.pp', line 26
class git::daemon(
Optional[Stdlib::Unixpath] $base_path = undef,
Array[Stdlib::Unixpath] $directories = [],
String $user = 'nobody',
String $group = 'nobody',
Integer $max_connections = 32,
String $description = 'Git daemon',
Hash $environment = {},
) {
# We dont want to honor `git send-pack` commands so make sure the
# receive-pack service is always disabled.
$daemon_options = "--export-all --informative-errors --forbid-override=receive-pack --max-connections=${max_connections}"
systemd::service { 'git-daemon':
ensure => present,
content => systemd_template('git-daemon'),
restart => true,
}
systemd::syslog { 'git-daemon':
owner => $user,
group => $group,
readable_by => 'all',
}
}
|