bodhi: Run fedora-messaging as apache.
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
bb3d49b94e
commit
02d154387d
3 changed files with 35 additions and 0 deletions
5
roles/bodhi2/backend/files/fm-consumer@.service
Normal file
5
roles/bodhi2/backend/files/fm-consumer@.service
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
.include /usr/lib/systemd/system/fm-consumer@.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User = apache
|
||||||
|
Group = apache
|
5
roles/bodhi2/backend/handlers/main.yml
Normal file
5
roles/bodhi2/backend/handlers/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
- name: restart fedora-messaging
|
||||||
|
service:
|
||||||
|
name: fm-consumer@config.service
|
||||||
|
state: restarted
|
|
@ -350,6 +350,7 @@
|
||||||
when: inventory_hostname.startswith('bodhi-backend')
|
when: inventory_hostname.startswith('bodhi-backend')
|
||||||
notify:
|
notify:
|
||||||
- reload bodhi httpd
|
- reload bodhi httpd
|
||||||
|
- restart fedora-messaging
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- bodhi
|
- bodhi
|
||||||
|
@ -363,6 +364,8 @@
|
||||||
group=apache
|
group=apache
|
||||||
mode=0600
|
mode=0600
|
||||||
when: inventory_hostname.startswith('bodhi-backend') and env == "staging"
|
when: inventory_hostname.startswith('bodhi-backend') and env == "staging"
|
||||||
|
notify:
|
||||||
|
- restart fedora-messaging
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- bodhi
|
- bodhi
|
||||||
|
@ -396,6 +399,22 @@
|
||||||
- bodhi
|
- bodhi
|
||||||
- config
|
- 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..
|
- name: have the apache own /var/cache/bodhi because of course..
|
||||||
file: >
|
file: >
|
||||||
path="/var/cache/bodhi"
|
path="/var/cache/bodhi"
|
||||||
|
@ -469,6 +488,8 @@
|
||||||
owner: apache
|
owner: apache
|
||||||
group: apache
|
group: apache
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
|
notify:
|
||||||
|
- restart fedora-messaging
|
||||||
tags:
|
tags:
|
||||||
- bodhi
|
- bodhi
|
||||||
|
|
||||||
|
@ -481,6 +502,8 @@
|
||||||
owner: apache
|
owner: apache
|
||||||
group: apache
|
group: apache
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
|
notify:
|
||||||
|
- restart fedora-messaging
|
||||||
tags:
|
tags:
|
||||||
- bodhi
|
- bodhi
|
||||||
|
|
||||||
|
@ -493,6 +516,8 @@
|
||||||
owner: apache
|
owner: apache
|
||||||
group: apache
|
group: apache
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
|
notify:
|
||||||
|
- restart fedora-messaging
|
||||||
tags:
|
tags:
|
||||||
- bodhi
|
- bodhi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue