copr-fe: automatically comment chroots from config
This commit is contained in:
parent
2d140964cd
commit
a67723b492
2 changed files with 22 additions and 0 deletions
16
roles/copr/frontend/files/chroots.conf
Normal file
16
roles/copr/frontend/files/chroots.conf
Normal 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.",
|
||||||
|
}]
|
|
@ -83,6 +83,12 @@
|
||||||
- config
|
- config
|
||||||
- copr_infrastructure_password
|
- 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
|
- 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
|
||||||
when: not services_disabled|bool
|
when: not services_disabled|bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue