zuul-config/playbooks/base/post-logs.yaml
2023-03-15 10:56:31 +01:00

28 lines
859 B
YAML

- hosts: localhost
tasks:
- name: Include Zuul manifest role
include_role:
name: generate-zuul-manifest
- name: Get cloud config from vault
no_log: true
vault_cloud_config:
vault_addr: "{{ zuul_vault_addr }}"
vault_token: "{{ lookup('file', zuul_base_vault_token_path) }}"
cloud_secret_path: "{{ vault_cloud_secret_path }}"
mode: "token"
register: cloud_config
- name: Include upload logs role
no_log: true
include_role:
name: upload-logs-swift1
vars:
zuul_log_path_shard_build: true
zuul_log_cloud_config: '{{ cloud_config.config }}'
zuul_log_partition: false
zuul_log_delete_after: 648000
# Unique log prefix to avoid container name collisions when ceph is
# used.
zuul_log_container: zuul_logs