From e03410cb9780a0480a4dad1e4acbb55d9cec084d Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 13 Jul 2021 09:15:01 +0200 Subject: [PATCH] copr-be: turn on ppc64le in production --- inventory/group_vars/copr_aws | 4 ++-- roles/copr/backend/tasks/main.yml | 3 ++- roles/copr/backend/templates/copr-be.conf.j2 | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/inventory/group_vars/copr_aws b/inventory/group_vars/copr_aws index dfaf61c04a..2204e30c4c 100644 --- a/inventory/group_vars/copr_aws +++ b/inventory/group_vars/copr_aws @@ -46,7 +46,7 @@ builders: #x86_hypervisor_04: # x86_64: [20, 4, 20] - #ppc64le_hypervisor_01: - # ppc64le: [2, 1, 1] + ppc64le_hypervisor_01: + ppc64le: [15, 4, 15] rpm_vendor_copr_name: Fedora Copr diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index 5915005e9f..6831d6bf4a 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -166,8 +166,9 @@ - name: calculate the maximum resalloc workers per architecture set_fact: "max_{{ item }}_workers={{ builders | community.general.json_query('*.'+item+'[0]') | sum() }}" with_items: - - x86_64 - aarch64 + - ppc64le + - x86_64 tags: - provision_config diff --git a/roles/copr/backend/templates/copr-be.conf.j2 b/roles/copr/backend/templates/copr-be.conf.j2 index 9a06f2f3df..5e81433076 100644 --- a/roles/copr/backend/templates/copr-be.conf.j2 +++ b/roles/copr/backend/templates/copr-be.conf.j2 @@ -51,7 +51,8 @@ builds_max_workers_arch= s390x={{ (max_x86_64_workers|int / 4)|int }}, i386={{ (max_x86_64_workers|int / 4)|int }}, i586={{ (max_x86_64_workers|int / 4)|int }}, - i686={{ (max_x86_64_workers|int / 4)|int }} + i686={{ (max_x86_64_workers|int / 4)|int }}, + ppc64le={{ (max_ppc64le_workers }} # Maximum number of concurrently running tasks per project owner. {% if env == 'production' %}