From 3e953b0d3d15b4c9391520dcb5722d7ccd37b933 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 24 Jun 2016 18:21:31 -0300 Subject: cgitrc support --- manifests/cgit.pp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'manifests/cgit.pp') diff --git a/manifests/cgit.pp b/manifests/cgit.pp index 217bb5f..7c6512d 100644 --- a/manifests/cgit.pp +++ b/manifests/cgit.pp @@ -1,4 +1,10 @@ -class git::cgit { +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, @@ -10,4 +16,12 @@ class git::cgit { #package { 'python-pygments': # ensure => present, #} + + file { '/etc/cgitrc': + owner => "root", + group => "root", + mode => 0644, + ensure => present, + content => template('git/cgitrc.erb'), + } } -- cgit v1.2.3