Limit the file size that can be pushed to Gerrit

We need to limit the size of the files that can be uploaded to
Gerrit because large files can break replication to Github due to
Github's size restrictions.  We've seen this happen with users
pushing large binary files.

Change-Id: Iff1fb7c83756ccfc73d39585db93655ffe88b136
depends-on: Iad06bfc421ce73aeb1e1496f86cc244624599bec
This commit is contained in:
Khai Do 2015-12-30 12:42:35 -08:00
parent 6e433e5196
commit a08b5a65cc

View File

@ -77,6 +77,7 @@ class openstack_project::gerrit (
$report_bug_url = 'http://docs.openstack.org/infra/system-config/project.html#contributing',
$index_threads = 1,
$download = {},
$receive_max_object_size_limit = '100 m',
) {
class { 'jeepyb::openstackwatch':
@ -215,6 +216,7 @@ class openstack_project::gerrit (
report_bug_url => $report_bug_url,
index_threads => $index_threads,
download => $download,
receive_max_object_size_limit => $receive_max_object_size_limit,
}
mysql_backup::backup_remote { 'gerrit':