diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2025-09-07 10:38:10 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2025-09-07 10:38:10 -0300 |
commit | 13274ea8cd9e2512123b8f0fa93a5ea5135a069d (patch) | |
tree | 73ec0fe4b436663d0a45431e460154f2bd63ec5f /manifests/cgit.pp | |
parent | acfb0d5bf9d288d15154ae9253d50d731e950d0a (diff) | |
download | puppet-git-13274ea8cd9e2512123b8f0fa93a5ea5135a069d.tar.gz puppet-git-13274ea8cd9e2512123b8f0fa93a5ea5135a069d.tar.bz2 |
Feat: parametrize caching
Diffstat (limited to 'manifests/cgit.pp')
-rw-r--r-- | manifests/cgit.pp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/manifests/cgit.pp b/manifests/cgit.pp index 069e356..26cb7d9 100644 --- a/manifests/cgit.pp +++ b/manifests/cgit.pp @@ -1,9 +1,16 @@ 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' + $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' + $cache = '1', + $cache_size = '10000', + $cache_about_ttl = '15', + $cache_dynamic_ttl = '15', + $cache_static_ttl = '4460', + $cache_root_ttl = '15', + $cache_repo_ttl = '120', ) { package { 'cgit': ensure => $::lsbdistcodename ? { |