copr-hypervisor: don't operate with main.ini

The commit a12c6d9396 wasn't enough, there
are other undefined variables.
This commit is contained in:
Pavel Raiskup
2023-08-22 10:21:54 +02:00
parent a12c6d9396
commit 511b1999c2
3 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1 @@
---
# Because we prepare golden images for copr builders on Copr vmhosts, we need to
# have "provision configuration" done there, too (otherwise typically needed on
# backend, where we start and provision the builders). The frontend_base_url is
# by accident needed to properly instantiate the provision templates.
frontend_base_url: "https://copr.fedorainfracloud.org"

View File

@@ -162,6 +162,9 @@
- name: put copr-rpmbuild configuration file in the right place
copy: src=files/main.ini dest=/etc/copr-rpmbuild/main.ini
when:
# TODO: use the default main.ini provided by copr-rpmbuild
- prepare_base_image is not defined
- name: mockbuilder user
user: name=mockbuilder groups=mock

View File

@@ -74,6 +74,8 @@
tags:
- provision_config
- copr_rpmbuild_main_ini
when:
when: "'copr_hypervisor' not in group_names"
- name: put rpkg configuration file into the provision subdir
template: src="{{ roles_path }}/copr/backend/templates/provision/rpkg.conf.j2"