bodhi: Run fedora-messaging as apache.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
Randy Barlow 2019-05-21 22:37:07 +00:00
parent bb3d49b94e
commit 02d154387d
3 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,5 @@
.include /usr/lib/systemd/system/fm-consumer@.service
[Service]
User = apache
Group = apache

View file

@ -0,0 +1,5 @@
---
- name: restart fedora-messaging
service:
name: fm-consumer@config.service
state: restarted

View file

@ -350,6 +350,7 @@
when: inventory_hostname.startswith('bodhi-backend')
notify:
- reload bodhi httpd
- restart fedora-messaging
tags:
- config
- bodhi
@ -363,6 +364,8 @@
group=apache
mode=0600
when: inventory_hostname.startswith('bodhi-backend') and env == "staging"
notify:
- restart fedora-messaging
tags:
- config
- bodhi
@ -396,6 +399,22 @@
- bodhi
- config
# We can drop the when condition when we deploy Bodhi 4.0.0 to production
- name: Configure fm-consumer@.service to run as apache
copy:
src: fm-consumer@.service
dest: /etc/systemd/system/fm-consumer@.service
owner: root
group: root
mode: 0644
when: env == "staging"
notify:
- reload systemd
- restart fedora-messaging
tags:
- bodhi
- config
- name: have the apache own /var/cache/bodhi because of course..
file: >
path="/var/cache/bodhi"
@ -469,6 +488,8 @@
owner: apache
group: apache
when: env == "staging"
notify:
- restart fedora-messaging
tags:
- bodhi
@ -481,6 +502,8 @@
owner: apache
group: apache
when: env == "staging"
notify:
- restart fedora-messaging
tags:
- bodhi
@ -493,6 +516,8 @@
owner: apache
group: apache
when: env == "staging"
notify:
- restart fedora-messaging
tags:
- bodhi