diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2025-09-08 20:37:00 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2025-09-08 20:37:00 -0300 |
commit | 80c7666d31908044d1804f660623131657653e98 (patch) | |
tree | 97cc40d3542f3e293be25e4bf94b097515e3eda2 | |
parent | 2910ac3a5e25fa2e90fdd43283f0a56e8b23eaa4 (diff) | |
download | puppet-git-80c7666d31908044d1804f660623131657653e98.tar.gz puppet-git-80c7666d31908044d1804f660623131657653e98.tar.bz2 |
-rw-r--r-- | manifests/cgit.pp | 7 | ||||
-rw-r--r-- | templates/cgitrc.erb | 15 |
2 files changed, 14 insertions, 8 deletions
diff --git a/manifests/cgit.pp b/manifests/cgit.pp index 3efcc1e..f1d12e2 100644 --- a/manifests/cgit.pp +++ b/manifests/cgit.pp @@ -13,6 +13,13 @@ class git::cgit( $cache_size = '0', $cache_snapshot_ttl = '5', $cache_static_ttl = '-1', + $enable_git_clone = '1', + $enable_http_clone = '1', + $enable_index_links = '1', + $source_filter = '/usr/lib/cgit/filters/syntax_highlighting.py', + $about_filter = '/usr/lib/cgit/filters/about_formatting.sh', + $enable_git_config = '1', + $remove_suffix = '1', ) { package { 'cgit': ensure => $::lsbdistcodename ? { diff --git a/templates/cgitrc.erb b/templates/cgitrc.erb index 0f06680..e925f86 100644 --- a/templates/cgitrc.erb +++ b/templates/cgitrc.erb @@ -24,14 +24,13 @@ cache-snapshot-ttl=<%= @cache_snapshot_ttl %> cache-static-ttl=<%= @cache_static_ttl %> # switches -enable-http-clone=1 -enable-index-links=1 -enable-http-clone=1 -enable-git-clone=1 +enable-git-clone=<%= @enable_git_clone %> +enable-http-clone=<%= @enable_http_clone %> +enable-index-links=<%= @enable_index_links %> # filters -source-filter=/usr/lib/cgit/filters/syntax-highlighting.py -about-filter=/usr/lib/cgit/filters/about-formatting.sh +source-filter=<%= @source_filter %> +about-filter=<%= @about_filter %> # readme files readme=:README.md @@ -81,7 +80,7 @@ mimetype.png=image/png mimetype.svg=image/svg+xml # projects -enable-git-config=1 -remove-suffix=1 +enable-git-config=<%= @enable_git_config %> +remove-suffix=<%= @remove_suffix %> project-list=/var/git/projects.list scan-path=/var/git/repositories/ |