From a67723b492444218d1163f324b879bc4100dc550 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 10 Jun 2022 08:10:22 +0200 Subject: [PATCH] copr-fe: automatically comment chroots from config --- roles/copr/frontend/files/chroots.conf | 16 ++++++++++++++++ roles/copr/frontend/tasks/main.yml | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 roles/copr/frontend/files/chroots.conf diff --git a/roles/copr/frontend/files/chroots.conf b/roles/copr/frontend/files/chroots.conf new file mode 100644 index 0000000000..9c8e0882c2 --- /dev/null +++ b/roles/copr/frontend/files/chroots.conf @@ -0,0 +1,16 @@ +# vim: ft=python + +config["rules"] = [{ + "match": ["fedora-34-i386", "fedora-35-i386", "fedora-36-i386"], + "comment": "Non-released Koji packages, more info 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.", +}] diff --git a/roles/copr/frontend/tasks/main.yml b/roles/copr/frontend/tasks/main.yml index f8e5ec6be3..9360549d79 100644 --- a/roles/copr/frontend/tasks/main.yml +++ b/roles/copr/frontend/tasks/main.yml @@ -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