Report abuse

class git::server inherits git {
    group { git: ensure => present }
    user { git: comment => "Git user", shell => "/bin/false", gid => git }

    modulefile { "/etc/init.d/git-daemon": source => "git/git-daemon", mode => 755, before => File[git-config] }
    file { git-config: path => "/etc/git-daemon.conf", content => "GIT_BASE=/opt/rl/git\n" }
    service { git-daemon: ensure => running, enable => true, subscribe => File[git-config] }
}