From 359b7d48b98a91d3f47bd718a3858be5b0bc27c4 Mon Sep 17 00:00:00 2001 From: "Elizabeth K. Joseph" Date: Fri, 4 Mar 2016 13:12:40 -0800 Subject: [PATCH] Customize cgit max-repo-count and set it to 1500 The max-repo-count setting in the cgitrc adjusts how many repos should be displayed on each page. In the puppet-cgit module we have a default of 600, which was intended to be enough for all the repos to be shown on git.openstack.org without a second page. We're now at over 1,000 repos, so you now need to page through them and this is not an optimal experience. Since cgit can handle loading thousands of repos on the main page, add the setting to our local configuration and bump it up to 1500. Change-Id: I7a2ea185f0876806ecfd17bedd84dbcd9769b124 --- modules/openstack_project/manifests/git_backend.pp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/openstack_project/manifests/git_backend.pp b/modules/openstack_project/manifests/git_backend.pp index 0f1694b3ca..9b2b17aaf2 100644 --- a/modules/openstack_project/manifests/git_backend.pp +++ b/modules/openstack_project/manifests/git_backend.pp @@ -53,12 +53,13 @@ class openstack_project::git_backend ( ssl_chain_file_contents => $ssl_chain_file_contents, behind_proxy => $behind_proxy, cgitrc_settings => { - 'clone-prefix' => 'git://git.openstack.org https://git.openstack.org', - 'commit-filter' => '/usr/local/bin/commit-filter.sh', - 'css' => '/static/openstack.css', - 'favicon' => '/static/favicon.ico', - 'logo' => '/static/openstack.png', - 'root-title' => 'OpenStack git repository browser', + 'clone-prefix' => 'git://git.openstack.org https://git.openstack.org', + 'commit-filter' => '/usr/local/bin/commit-filter.sh', + 'css' => '/static/openstack.css', + 'favicon' => '/static/favicon.ico', + 'logo' => '/static/openstack.png', + 'root-title' => 'OpenStack git repository browser', + 'max-repo-count' => 1500, }, manage_cgitrc => true, selinux_mode => $selinux_mode