From a08b5a65cc56c4152b7b7319b129d6580f464c3a Mon Sep 17 00:00:00 2001 From: Khai Do Date: Wed, 30 Dec 2015 12:42:35 -0800 Subject: [PATCH] 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 --- modules/openstack_project/manifests/gerrit.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp index 1605cfbbdc..af41884579 100644 --- a/modules/openstack_project/manifests/gerrit.pp +++ b/modules/openstack_project/manifests/gerrit.pp @@ -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':