diff --git a/files/gitlab-config-template/gitlab.rb.template b/files/gitlab-config-template/gitlab.rb.template index 7ff714d2ba77d67e48457cdb3c14a07ebfe708b2_ZmlsZXMvZ2l0bGFiLWNvbmZpZy10ZW1wbGF0ZS9naXRsYWIucmIudGVtcGxhdGU=..0c64f5dc3122c08ffea3e60e139897ddbcbfc0c7_ZmlsZXMvZ2l0bGFiLWNvbmZpZy10ZW1wbGF0ZS9naXRsYWIucmIudGVtcGxhdGU= 100644 --- a/files/gitlab-config-template/gitlab.rb.template +++ b/files/gitlab-config-template/gitlab.rb.template @@ -2403,6 +2403,7 @@ # } # } # } +# praefect['background_verification_verification_interval'] = "72h" # praefect['sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>" # praefect['sentry_environment'] = "production" # praefect['auto_migrate'] = true diff --git a/files/gitlab-cookbooks/praefect/attributes/default.rb b/files/gitlab-cookbooks/praefect/attributes/default.rb index 7ff714d2ba77d67e48457cdb3c14a07ebfe708b2_ZmlsZXMvZ2l0bGFiLWNvb2tib29rcy9wcmFlZmVjdC9hdHRyaWJ1dGVzL2RlZmF1bHQucmI=..0c64f5dc3122c08ffea3e60e139897ddbcbfc0c7_ZmlsZXMvZ2l0bGFiLWNvb2tib29rcy9wcmFlZmVjdC9hdHRyaWJ1dGVzL2RlZmF1bHQucmI= 100644 --- a/files/gitlab-cookbooks/praefect/attributes/default.rb +++ b/files/gitlab-cookbooks/praefect/attributes/default.rb @@ -41,3 +41,4 @@ default['praefect']['key_path'] = nil default['praefect']['consul_service_name'] = 'praefect' default['praefect']['consul_service_meta'] = nil +default['praefect']['background_verification_verification_interval'] = nil diff --git a/files/gitlab-cookbooks/praefect/templates/default/praefect-config.toml.erb b/files/gitlab-cookbooks/praefect/templates/default/praefect-config.toml.erb index 7ff714d2ba77d67e48457cdb3c14a07ebfe708b2_ZmlsZXMvZ2l0bGFiLWNvb2tib29rcy9wcmFlZmVjdC90ZW1wbGF0ZXMvZGVmYXVsdC9wcmFlZmVjdC1jb25maWcudG9tbC5lcmI=..0c64f5dc3122c08ffea3e60e139897ddbcbfc0c7_ZmlsZXMvZ2l0bGFiLWNvb2tib29rcy9wcmFlZmVjdC90ZW1wbGF0ZXMvZGVmYXVsdC9wcmFlZmVjdC1jb25maWcudG9tbC5lcmI= 100644 --- a/files/gitlab-cookbooks/praefect/templates/default/praefect-config.toml.erb +++ b/files/gitlab-cookbooks/praefect/templates/default/praefect-config.toml.erb @@ -63,6 +63,11 @@ format = '<%= @logging_format %>' <% end %> +[background_verification] +<% if @background_verification_verification_interval %> +verification_interval = '<%= @background_verification_verification_interval %>' +<% end %> + <% @virtual_storages.each do |name, config| %> [[virtual_storage]] name = '<%= name %>' diff --git a/spec/chef/cookbooks/praefect/recipes/praefect_spec.rb b/spec/chef/cookbooks/praefect/recipes/praefect_spec.rb index 7ff714d2ba77d67e48457cdb3c14a07ebfe708b2_c3BlYy9jaGVmL2Nvb2tib29rcy9wcmFlZmVjdC9yZWNpcGVzL3ByYWVmZWN0X3NwZWMucmI=..0c64f5dc3122c08ffea3e60e139897ddbcbfc0c7_c3BlYy9jaGVmL2Nvb2tib29rcy9wcmFlZmVjdC9yZWNpcGVzL3ByYWVmZWN0X3NwZWMucmI= 100644 --- a/spec/chef/cookbooks/praefect/recipes/praefect_spec.rb +++ b/spec/chef/cookbooks/praefect/recipes/praefect_spec.rb @@ -50,6 +50,7 @@ 'session_pooled' => {}, }, 'reconciliation' => {}, + 'background_verification' => {}, 'failover' => { 'enabled' => true } } @@ -154,6 +155,7 @@ database_direct_port: database_direct_port, reconciliation_scheduling_interval: reconciliation_scheduling_interval, reconciliation_histogram_buckets: reconciliation_histogram_buckets, + background_verification_verification_interval: '168h', }) end @@ -195,6 +197,9 @@ 'histogram_buckets' => [1.0, 2.0], 'scheduling_interval' => '1m' }, + 'background_verification' => { + 'verification_interval' => '168h' + }, 'sentry' => { 'sentry_dsn' => 'https://my_key:my_secret@sentry.io/test_project', 'sentry_environment' => 'production'