copr-fe: automatically comment chroots from config

This commit is contained in:
Pavel Raiskup 2022-06-10 08:10:22 +02:00
parent 2d140964cd
commit a67723b492
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,16 @@
# vim: ft=python
config["rules"] = [{
"match": ["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."
}, {
"match": ["epel-8", "epel-9"],
"comment": "Builds are done against RHEL chroots + EPEL.",
}, {
"match": ["epel-7"],
"comment": "Builds are done against CentOS 7 + EPEL 7.",
}, {
"match_type": "arch",
"match": ["armhfp"],
"comment": "An emulated chroot. Builds are done on x86_64.",
}]

View file

@ -83,6 +83,12 @@
- config
- copr_infrastructure_password
- name: install config for 'copr-frontend chroots-template'
copy: src="chroots.conf" dest=/etc/copr/chroots.conf mode=600
owner=copr-fe group=copr-fe
tags:
- config
- name: enable and start redis # TODO: .service in copr-backend should depend on redis
service: name=redis enabled=yes state=started
when: not services_disabled|bool