koji-hub: Configure rpmautospec in staging

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-03-31 11:58:40 +02:00
parent bd45868350
commit 164952d19b
3 changed files with 32 additions and 0 deletions

View file

@ -146,6 +146,29 @@
- koji_hub
- fedora-messaging
#
# rpmautospec plugin
#
- name: install koji hub rpmautospec plugin
package: name={{ item }} state=present
with_items:
- koji-hub-plugin-rpmautospec
when: env == 'staging'
tags:
- packages
- koji_hub
- rpmautospec
- name: install the configuration file for rpmautospec
template:
src=rpmautospec_hub.conf
dest=/etc/koji-hub/plugins/rpmautospec_hub.conf
when: env == 'staging'
tags:
- koji_hub
- rpmautospec
#
# install keytabs
#

View file

@ -77,7 +77,11 @@ DisableNotifications = True
#Plugins = koji-disable-builds-plugin
#Plugins = darkserver-plugin
{% if env == 'staging' %}
Plugins = fedmsg-koji-plugin runroot_hub hub_containerbuild tag2distrepo sidetag_hub rpmautospec_hub
{% else %}
Plugins = fedmsg-koji-plugin runroot_hub hub_containerbuild tag2distrepo sidetag_hub
{% endif %}
[policy]

View file

@ -0,0 +1,5 @@
[pagure]
{% if env == 'staging' %}
url = https://src.stg.fedoraproject.org
token = {{ rpmautospec_pagure_token_stg }}
{% endif %}