aboutsummaryrefslogtreecommitdiff
path: root/manifests/daemon.pp
blob: 56e0430a5be5d6cb82378d72e9680177de94d145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class git::daemon (
  $implementation = hiera('git::daemon::implementation', 'gitolite')
) {

  case $implementation {
    'gitosis': {
      include git::gitosis
    }
    default: {
      include git::gitolite
    }
  }

  # the needed packages and services
  include inetd

  # git-daemon config in inetd
  line { "git-daemon-inetd":
    file   => "/etc/inetd.conf",
    line   => "git stream tcp nowait ${implementation} /usr/bin/git git daemon --inetd --verbose --base-path=/var/git/repositories /var/git/repositories",
    ensure => present,
  }
}