# This class configures the git-daemon service. It ensures the packages is # installed and a line is present in /etc/inetd.conf, which configures it. # It depends on a "line" definition, which can be found here: # # http://reductivelabs.com/trac/puppet/wiki/Recipes/SimpleText class git-daemon inherits git-manager { # 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 $git_server_implementation /usr/bin/git git daemon --inetd --verbose --base-path=/var/git/repositories /var/git/repositories", ensure => present, } }