copr-frontend: automatically apply the chroot comment changes
This commit is contained in:
parent
a67723b492
commit
a818ccb3cf
2 changed files with 16 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
|||
# vim: ft=python
|
||||
|
||||
config = {}
|
||||
|
||||
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."
|
||||
}, {
|
||||
"match": ["epel-8", "epel-9"],
|
||||
|
|
|
@ -86,8 +86,21 @@
|
|||
- 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
|
||||
register: chroots_conf_installed
|
||||
tags:
|
||||
- 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
|
||||
service: name=redis enabled=yes state=started
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue