diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2016-06-24 18:21:31 -0300 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2016-06-24 18:21:31 -0300 | 
| commit | 3e953b0d3d15b4c9391520dcb5722d7ccd37b933 (patch) | |
| tree | a1a4eb8e7f760b179009f6fea606d4fdd19a3cea /manifests | |
| parent | c2f4286410ff21ba7b60fffdf9f7d04af6b2c9ac (diff) | |
| download | puppet-git-3e953b0d3d15b4c9391520dcb5722d7ccd37b933.tar.gz puppet-git-3e953b0d3d15b4c9391520dcb5722d7ccd37b933.tar.bz2 | |
cgitrc support
Diffstat (limited to 'manifests')
| -rw-r--r-- | manifests/cgit.pp | 16 | 
1 files changed, 15 insertions, 1 deletions
| 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'), +  }  } | 
