class git::cgit( $css = '/cgit-css/cgit.css', $logo = '/cgit.png', $root_title = 'Git Repository Browser', $root_desc = 'a fast webinterface for the git dscm', $clone_url = 'https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL git://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL git@$HTTP_HOST:$CGIT_REPO_URL' ) { package { 'cgit': ensure => $::lsbdistcodename ? { 'wheezy' => absent, default => present, } } # For synthax highlighting #package { 'python-pygments': # ensure => present, #} file { '/etc/cgitrc': owner => "root", group => "root", mode => 0644, ensure => present, content => template('git/cgitrc.erb'), } }