copr-backend: revert temporarily disabled tasks

See https://pagure.io/fedora-infrastructure/issue/11336

This reverts commit 3c00832230.
This reverts commit ccab97a1ca.
This commit is contained in:
Jakub Kadlcik 2023-05-24 13:06:04 +02:00
parent ee7d388632
commit 5d50343254

View file

@ -192,36 +192,28 @@
# tags:
# - provision_config
#
- name: calculate the maximum resalloc workers per architecture
set_fact: "max_{{ item }}_workers={{ builders | community.general.json_query('*.'+item+'[0]') | sum() }}"
with_items:
- aarch64
- ppc64le
- x86_64
- s390x
tags:
- provision_config
- name: calculate max number of workers
set_fact: "max_workers={{ max_x86_64_workers|int + max_aarch64_workers|int + max_ppc64le_workers|int + max_s390x_workers|int }}"
tags:
- provision_config
# We need to temporarily comment the following few tasks. They fail
# because the `python3-jmespath` on batcave is provided older python
# version than we need.
# See https://pagure.io/fedora-infrastructure/issue/11336
#
# - name: calculate the maximum resalloc workers per architecture
# set_fact: "max_{{ item }}_workers={{ builders | community.general.json_query('*.'+item+'[0]') | sum() }}"
# with_items:
# - aarch64
# - ppc64le
# - x86_64
# - s390x
# tags:
# - provision_config
#
# - name: calculate max number of workers
# set_fact: "max_workers={{ max_x86_64_workers|int + max_aarch64_workers|int + max_ppc64le_workers|int + max_s390x_workers|int }}"
# tags:
# - provision_config
#
# - name: print max arch workers
# debug: "var=max_{{ item }}_workers"
# with_items:
# - x86_64
# - aarch64
# tags:
# - provision_config
- name: print max arch workers
debug: "var=max_{{ item }}_workers"
with_items:
- x86_64
- aarch64
tags:
- provision_config
- name: resalloc
import_tasks: resalloc.yml
@ -261,15 +253,14 @@
copy: dest="/home/copr/cloud/ec2rc.variable" content=""
when: devel|bool
# See https://pagure.io/fedora-infrastructure/issue/11336
# - name: copy copr-be.conf
# template: src="copr-be.conf.j2" dest=/etc/copr/copr-be.conf owner=root group=copr mode=640
# notify:
# - restart copr-backend
# tags:
# - config
# - copr_infrastructure_password
# - provision_config
- name: copy copr-be.conf
template: src="copr-be.conf.j2" dest=/etc/copr/copr-be.conf owner=root group=copr mode=640
notify:
- restart copr-backend
tags:
- config
- copr_infrastructure_password
- provision_config
- name: create messaging config directory
file: dest=/etc/copr/msgbuses state=directory owner=copr group=copr mode=0700