mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
koji-hub: Configure rpmautospec in staging
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
@@ -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
|
||||
#
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
5
roles/koji_hub/templates/rpmautospec_hub.conf
Normal file
5
roles/koji_hub/templates/rpmautospec_hub.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
[pagure]
|
||||
{% if env == 'staging' %}
|
||||
url = https://src.stg.fedoraproject.org
|
||||
token = {{ rpmautospec_pagure_token_stg }}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user