
This removes the kata-containers tenant backup entry as that tenant no longer exists. We also add status json backups for the opendev, vexxhost, zuul, pyca, and pypa tenants. This gets us in sync with the current tenant list. Change-Id: I8527676dda67915e6ebe0d1c5fde7a57a7ac2e5b
104 lines
2.2 KiB
YAML
104 lines
2.2 KiB
YAML
- name: Copy main.yaml into place
|
|
copy:
|
|
remote_src: yes
|
|
src: /opt/project-config/zuul/main.yaml
|
|
dest: /etc/zuul/main.yaml
|
|
notify: Reload Zuul Scheduler
|
|
|
|
- name: Add github key
|
|
copy:
|
|
content: '{{ zuul_github_app_key }}'
|
|
dest: /etc/zuul/github.key
|
|
owner: '{{ zuul_user }}'
|
|
group: '{{ zuul_group }}'
|
|
mode: 0600
|
|
|
|
- name: Add opendev status backup
|
|
include_role:
|
|
name: zuul-status-backup
|
|
vars:
|
|
tenant: opendev
|
|
|
|
- name: Add openstack status backup
|
|
include_role:
|
|
name: zuul-status-backup
|
|
vars:
|
|
tenant: openstack
|
|
|
|
- name: Add vexxhost status backup
|
|
include_role:
|
|
name: zuul-status-backup
|
|
vars:
|
|
tenant: vexxhost
|
|
|
|
- name: Add zuul status backup
|
|
include_role:
|
|
name: zuul-status-backup
|
|
vars:
|
|
tenant: zuul
|
|
|
|
- name: Add pyca status backup
|
|
include_role:
|
|
name: zuul-status-backup
|
|
vars:
|
|
tenant: pyca
|
|
|
|
- name: Add pypa status backup
|
|
include_role:
|
|
name: zuul-status-backup
|
|
vars:
|
|
tenant: pypa
|
|
|
|
- name: Install logging config
|
|
copy:
|
|
src: logging.conf
|
|
dest: /etc/zuul/logging.conf
|
|
|
|
- name: Install geraman logging config
|
|
copy:
|
|
src: gearman-logging.conf
|
|
dest: /etc/zuul/gearman-logging.conf
|
|
|
|
- name: Rotate logs
|
|
include_role:
|
|
name: logrotate
|
|
vars:
|
|
logrotate_file_name: /var/log/zuul/zuul.log
|
|
logrotate_rotate: 30
|
|
|
|
- name: Rotate zuul debug logs
|
|
include_role:
|
|
name: logrotate
|
|
vars:
|
|
logrotate_file_name: /var/log/zuul/debug.log
|
|
logrotate_rotate: 30
|
|
|
|
- name: Rotate gearman logs
|
|
include_role:
|
|
name: logrotate
|
|
vars:
|
|
logrotate_file_name: /var/log/zuul/gearman-server.log
|
|
|
|
- name: Make docker-compose directory
|
|
file:
|
|
state: directory
|
|
path: /etc/zuul-scheduler
|
|
|
|
- name: Install docker-compose file
|
|
copy:
|
|
src: docker-compose.yaml
|
|
dest: /etc/zuul-scheduler/docker-compose.yaml
|
|
|
|
- name: Update container images
|
|
include_tasks: pull.yaml
|
|
|
|
- name: Start containers
|
|
include_tasks: start.yaml
|
|
when: zuul_scheduler_start is defined and zuul_scheduler_start | bool
|
|
|
|
# We can prune here as it should leave the "latest" tagged images
|
|
# as well as the currently running images.
|
|
- name: Run docker prune to cleanup unneeded images
|
|
shell:
|
|
cmd: docker image prune -f
|