copr-frontend: automatically apply the chroot comment changes

This commit is contained in:
Pavel Raiskup 2022-06-10 08:21:16 +02:00
parent a67723b492
commit a818ccb3cf
2 changed files with 16 additions and 1 deletions

View file

@ -1,7 +1,9 @@
# vim: ft=python # vim: ft=python
config = {}
config["rules"] = [{ config["rules"] = [{
"match": ["fedora-34-i386", "fedora-35-i386", "fedora-36-i386"], "match": ["fedora-rawhide-i386", "fedora-34-i386", "fedora-35-i386", "fedora-36-i386"],
"comment": "Non-released Koji packages, <a href='https://fedoraproject.org/wiki/Changes/Noi686Repositories'>more info</a> why you probably don't want this one." "comment": "Non-released Koji packages, <a href='https://fedoraproject.org/wiki/Changes/Noi686Repositories'>more info</a> why you probably don't want this one."
}, { }, {
"match": ["epel-8", "epel-9"], "match": ["epel-8", "epel-9"],

View file

@ -86,8 +86,21 @@
- name: install config for 'copr-frontend chroots-template' - name: install config for 'copr-frontend chroots-template'
copy: src="chroots.conf" dest=/etc/copr/chroots.conf mode=600 copy: src="chroots.conf" dest=/etc/copr/chroots.conf mode=600
owner=copr-fe group=copr-fe owner=copr-fe group=copr-fe
register: chroots_conf_installed
tags: tags:
- config - config
- chroots_config
- name: apply the config comments
command: copr-frontend chroots-template
become: yes
become_user: copr-fe
args:
chdir: /usr/share/copr/coprs_frontend/
when: chroots_conf_installed.changed
tags:
- config
- chroots_config
- name: enable and start redis # TODO: .service in copr-backend should depend on redis - name: enable and start redis # TODO: .service in copr-backend should depend on redis
service: name=redis enabled=yes state=started service: name=redis enabled=yes state=started