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
This commit is contained in:
Elizabeth K. Joseph 2016-03-04 13:12:40 -08:00
parent 93ab8feca6
commit 359b7d48b9

View File

@ -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