From eaab38319a078237b295a6e3711f9a32a6a48f9f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 31 2020 13:22:46 +0000 Subject: koji-builders: install and configure the rpmautospec plugin Signed-off-by: Pierre-Yves Chibon --- diff --git a/roles/koji_builder/tasks/main.yml b/roles/koji_builder/tasks/main.yml index 48735cb..f80c126 100644 --- a/roles/koji_builder/tasks/main.yml +++ b/roles/koji_builder/tasks/main.yml @@ -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: diff --git a/roles/koji_builder/templates/kojid.conf b/roles/koji_builder/templates/kojid.conf index 2800760..8d320c7 100644 --- a/roles/koji_builder/templates/kojid.conf +++ b/roles/koji_builder/templates/kojid.conf @@ -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(" ") }}