koji-builders: install and configure the rpmautospec plugin

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-03-31 12:27:18 +02:00
parent 850d3dc4b6
commit 80cba71063
2 changed files with 25 additions and 6 deletions

View file

@ -96,6 +96,20 @@
tags:
- koji_builder
#
# rpmautospec plugin
#
- name: install koji builder rpmautospec plugin
package: name={{ item }} state=present
with_items:
- koji-builder-plugin-rpmautospec
when: env == 'staging'
tags:
- packages
- koji_builder
- rpmautospec
- name: Install arm UEFI firmware package (aarch64 only)
package: name=edk2-arm state=present
tags:

View file

@ -143,16 +143,21 @@ keytab = /etc/kojid/kojid.keytab
krbservice = host
krb_rdns = false
{% if 'runroot' in group_names %}
; Config for it lives in /etc/kojid/runroot.conf
plugins = runroot
{% set plugins = [] %}
{% if 'runroot' in group_names %}
{% set plugins = ['runroot'] %}
{% else %}
{% if ansible_architecture == 'x86_64' and not inventory_hostname.startswith('bkernel') %}
plugins = builder_containerbuild
{% else %}
plugins =
{% set plugins = ['builder_containerbuild'] %}
{% endif %}
{% endif %}
{% if env == 'staging' %}
{% set plugins.append("rpmautospec_builder") %}
{% endif %}
; Config for the runroot plugin lives in /etc/kojid/runroot.conf, if enabled
plugins = {{ plugins | join(" ") }}