Koji: prepare for prod deployment of rpmautospec
The relevant parts were made conditional and only applied in the staging environment, change that. Alongside, ensure the obsolete hub plugin package and plugin configuration files are removed and don't automatically update any of the involved packages. Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
parent
2c0101d083
commit
9a5d550570
5 changed files with 23 additions and 26 deletions
|
@ -132,20 +132,25 @@
|
|||
#
|
||||
|
||||
- name: install koji builder rpmautospec plugin
|
||||
package: name={{ item }} state=latest
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
- koji-builder-plugin-rpmautospec
|
||||
when: env == 'staging'
|
||||
tags:
|
||||
- packages
|
||||
- koji_builder
|
||||
- rpmautospec
|
||||
|
||||
- name: install the configuration file for rpmautospec
|
||||
template:
|
||||
src: "{{ playbook_dir }}/../../roles/koji_hub/templates/rpmautospec.conf"
|
||||
dest: /etc/kojid/plugins/rpmautospec.conf
|
||||
when: env == 'staging'
|
||||
- name: remove obsolete configuration of rpmautospec
|
||||
file:
|
||||
path: "/etc/kojid/plugins/{{ item }}"
|
||||
state: absent
|
||||
loop:
|
||||
- rpmautospec.conf
|
||||
- rpmautospec.conf.rpmnew
|
||||
- rpmautospec.conf.rpmsave
|
||||
- rpmautospec.conf.rpmorig
|
||||
tags:
|
||||
- koji_builder
|
||||
- rpmautospec
|
||||
|
|
|
@ -153,9 +153,7 @@ keytab = /etc/kojid/kojid.keytab
|
|||
{{ plugins.append("builder_containerbuild") }}
|
||||
{% endif %}
|
||||
|
||||
{% if env == 'staging' %}
|
||||
{{ plugins.append("rpmautospec_builder") }}
|
||||
{% endif %}
|
||||
|
||||
; Config for the runroot plugin lives in /etc/kojid/runroot.conf, if enabled
|
||||
plugins = {{ plugins | join(" ") }}
|
||||
|
|
|
@ -186,21 +186,24 @@
|
|||
# rpmautospec plugin
|
||||
#
|
||||
|
||||
- name: install koji hub rpmautospec plugin
|
||||
package: name={{ item }} state=latest
|
||||
- name: uninstall koji hub rpmautospec plugin
|
||||
package: name={{ item }} state=absent
|
||||
with_items:
|
||||
- koji-hub-plugin-rpmautospec
|
||||
when: env == 'staging'
|
||||
tags:
|
||||
- packages
|
||||
- koji_hub
|
||||
- rpmautospec
|
||||
|
||||
- name: install the configuration file for rpmautospec
|
||||
template:
|
||||
src: rpmautospec.conf
|
||||
dest: /etc/koji-hub/plugins/rpmautospec.conf
|
||||
when: env == 'staging'
|
||||
- name: remove obsolete configuration for rpmautospec
|
||||
file:
|
||||
path: "/etc/koji-hub/plugins/{{ item }}"
|
||||
state: absent
|
||||
loop:
|
||||
- rpmautospec.conf
|
||||
- rpmautospec.conf.rpmnew
|
||||
- rpmautospec.conf.rpmsave
|
||||
- rpmautospec.conf.rpmorig
|
||||
tags:
|
||||
- koji_hub
|
||||
- rpmautospec
|
||||
|
|
|
@ -84,11 +84,7 @@ MissingPolicyOk = False
|
|||
|
||||
#Plugins = koji-disable-builds-plugin
|
||||
#Plugins = darkserver-plugin
|
||||
{% if env == 'staging' %}
|
||||
Plugins = fedmsg-koji-plugin runroot_hub hub_containerbuild tag2distrepo sidetag_hub save_failed_tree rpmautospec_hub
|
||||
{% else %}
|
||||
Plugins = fedmsg-koji-plugin runroot_hub hub_containerbuild tag2distrepo sidetag_hub save_failed_tree
|
||||
{% endif %}
|
||||
|
||||
[policy]
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[pagure]
|
||||
{% if env == 'staging' %}
|
||||
url = https://src.stg.fedoraproject.org
|
||||
token = {{ rpmautospec_pagure_token_stg }}
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue