diff --git a/roles/bodhi2/backend/files/fedmsg-hub.conf b/roles/bodhi2/backend/files/fedmsg-hub.conf new file mode 100644 index 0000000000..2e0ca1a80f --- /dev/null +++ b/roles/bodhi2/backend/files/fedmsg-hub.conf @@ -0,0 +1,2 @@ +[Service] +User=masher diff --git a/roles/bodhi2/backend/tasks/main.yml b/roles/bodhi2/backend/tasks/main.yml index 63d89889c4..c95a1ce2a8 100644 --- a/roles/bodhi2/backend/tasks/main.yml +++ b/roles/bodhi2/backend/tasks/main.yml @@ -232,3 +232,22 @@ - name: make a mnt/koji link file: state=link src=/mnt/fedora_koji/koji dest=/mnt/koji + +- name: create the /usr/lib/systemd/system/fedmsg-hub.service.d drop-in directory + file: path=/usr/lib/systemd/system/fedmsg-hub.service.d state=directory mode=0755 + tags: + - config + - bodhi + +- name: install a femdsg-hub.service drop-in to run it as the masher + copy: > + src="fedmsg-hub.conf" + dest="/usr/lib/systemd/system/fedmsg-hub.service.d/fedmsg-hub.conf" + owner=root + group=root + mode=0644 + notify: + - restart httpd + tags: + - bodhi + - config