diff --git a/manifests/init.pp b/manifests/init.pp index 578f5ef..a4fe297 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -265,6 +265,10 @@ class gerrit( $receive_max_object_size_limit = '', $cache_diff_timeout = '', $cache_diff_intraline_timeout = '', + $cache_accounts = '', + $cache_accounts_byemail = '', + $cache_accounts_byname = '', + $cache_groups_byuuid = '', $download = {}, $commitmessage_params = {}, $java_home = $::gerrit::params::java_home, @@ -446,6 +450,10 @@ class gerrit( # - $receive_max_object_size_limit # - $cache_diff_timeout # - $cache_diff_intraline_timeout + # - $cache_accounts + # - $cache_accounts_byemail + # - $cache_accounts_byname + # - $cache_groups_byuuid # - $download # - $commitmessage_params diff --git a/templates/gerrit.config.erb b/templates/gerrit.config.erb index f7192f0..064db91 100644 --- a/templates/gerrit.config.erb +++ b/templates/gerrit.config.erb @@ -124,6 +124,22 @@ [cache "diff_intraline"] timeout = <%= @cache_diff_intraline_timeout %> <% end -%> +<% if @cache_accounts != "" -%> +[cache "accounts"] + memoryLimit = <%= @cache_accounts %> +<% end -%> +<% if @cache_accounts_byemail != "" -%> +[cache "accounts_byemail"] + memoryLimit = <%= @cache_accounts_byemail %> +<% end -%> +<% if @cache_accounts_byname != "" -%> +[cache "accounts_byname"] + memoryLimit = <%= @cache_accounts_byname %> +<% end -%> +<% if @cache_groups_byuuid != "" -%> +[cache "groups_byuuid"] + memoryLimit = <%= @cache_groups_byuuid %> +<% end -%> [user] email = <%= @email %> [change]