Merge "upload-logs-swift: option for disabling the indexer"

This commit is contained in:
Zuul 2019-07-19 17:52:11 +00:00 committed by Gerrit Code Review
commit e9ee6799bd
3 changed files with 9 additions and 0 deletions

View File

@ -53,3 +53,10 @@ This uploads logs to an OpenStack Object Store (Swift) container.
:default: Generated by the role `set-zuul-log-path-fact`
Prepend this path to the object names when uploading.
.. zuul:rolevar:: zuul_log_create_indexes
:default: true
Whether to create `index.html` files with directory indexes. If set
to false, Swift containers can be marked with a `Web-Listings=true`
property to activate Swift's own directory indexing.

View File

@ -1,3 +1,4 @@
zuul_log_partition: false
zuul_log_container: logs
zuul_log_container_public: true
zuul_log_create_indexes: true

View File

@ -24,6 +24,7 @@
container: "{{ zuul_log_container }}"
public: "{{ zuul_log_container_public }}"
prefix: "{{ zuul_log_path }}"
indexes: "{{ zuul_log_create_indexes }}"
files:
- "{{ zuul.executor.log_root }}/"
delete_after: "{{zuul_log_delete_after | default(omit) }}"