diff --git a/manifests/mirror.pp b/manifests/mirror.pp index bc1fc8b..71d7248 100644 --- a/manifests/mirror.pp +++ b/manifests/mirror.pp @@ -22,6 +22,7 @@ class bandersnatch::mirror ( $static_root = '/srv/static', $user = 'root', $group = 'root', + $hash_index = false, ) { if ! defined(File[$static_root]) { diff --git a/templates/bandersnatch.conf.erb b/templates/bandersnatch.conf.erb index d731f5e..bbef178 100644 --- a/templates/bandersnatch.conf.erb +++ b/templates/bandersnatch.conf.erb @@ -20,6 +20,10 @@ timeout = 10 ; - anything beyond 50 is probably unreasonable and avoided by bandersnatch workers = 3 +<% if @hash_index == true -%> +hash-index = true +<% end -%> + ; Whether to stop a sync quickly after an error is found or whether to continue ; syncing but not marking the sync as successful. Value should be "true" or ; "false".