diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index bbacbe0b3d..459798fa09 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -207,6 +207,21 @@ tags: - config +- name: create messaging config directory + file: dest=/etc/copr/msgbuses state=directory owner=copr group=copr mode=0700 + tags: + - config + +- name: install messaging config + template: src="fedora-messaging.conf.j2" + dest=/etc/copr/msgbuses + owner=copr group=copr mode=0600 + notify: + - restart copr-backend + tags: + - config + when: devel|bool + - name: copy sign.conf template: src=sign.conf dest=/etc/sign.conf owner=root group=copr mode=640 tags: diff --git a/roles/copr/backend/templates/fedora-messaging.conf.j2 b/roles/copr/backend/templates/fedora-messaging.conf.j2 new file mode 100644 index 0000000000..8154729760 --- /dev/null +++ b/roles/copr/backend/templates/fedora-messaging.conf.j2 @@ -0,0 +1,3 @@ +bus_type = 'fedora-messaging' +bus_id = 'fm' +toml_config = '/etc/fedora-messaging/copr.toml'