diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2025-09-07 11:06:18 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2025-09-07 11:06:18 -0300 |
commit | 17037d6971f2c4a3e48619df64c1f6ab4bf1c98f (patch) | |
tree | 87bd21a52592531c93bcdd4a98d630ca902063bf /manifests | |
parent | 873102498ed297680997f8f25b559b7f8e0b986f (diff) | |
download | puppet-git-17037d6971f2c4a3e48619df64c1f6ab4bf1c98f.tar.gz puppet-git-17037d6971f2c4a3e48619df64c1f6ab4bf1c98f.tar.bz2 |
Increase caching
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/cgit.pp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/manifests/cgit.pp b/manifests/cgit.pp index dec9024..45558ac 100644 --- a/manifests/cgit.pp +++ b/manifests/cgit.pp @@ -1,16 +1,18 @@ 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', - $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', + $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_about_ttl = '30', + $cache_dynamic_ttl = '30', + $cache_repo_ttl = '120', + $cache_root = '/var/cache/cgit', + $cache_root_ttl = '60', + $cache_scanrc_ttl = '60', + $cache_size = '20000', + $cache_snapshot_ttl = '60', + $cache_static_ttl = '86400', ) { package { 'cgit': ensure => $::lsbdistcodename ? { |