bodhi: Only use fedmsg in production.
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
3a907f13bd
commit
9d4898da96
1 changed files with 10 additions and 1 deletions
|
@ -372,12 +372,15 @@
|
||||||
tags:
|
tags:
|
||||||
- bodhi
|
- bodhi
|
||||||
|
|
||||||
|
# We can drop this once we deploy Bodhi 4.0.0 to production
|
||||||
- name: create the /usr/lib/systemd/system/fedmsg-hub-3.service.d drop-in directory
|
- name: create the /usr/lib/systemd/system/fedmsg-hub-3.service.d drop-in directory
|
||||||
file: path=/usr/lib/systemd/system/fedmsg-hub-3.service.d state=directory mode=0755
|
file: path=/usr/lib/systemd/system/fedmsg-hub-3.service.d state=directory mode=0755
|
||||||
|
when: env == "production"
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- bodhi
|
- bodhi
|
||||||
|
|
||||||
|
# We can drop this once we deploy Bodhi 4.0.0 to production
|
||||||
- name: install a femdsg-hub-3.service drop-in to run it as the apache
|
- name: install a femdsg-hub-3.service drop-in to run it as the apache
|
||||||
copy: >
|
copy: >
|
||||||
src="fedmsg-hub.conf"
|
src="fedmsg-hub.conf"
|
||||||
|
@ -385,6 +388,7 @@
|
||||||
owner=root
|
owner=root
|
||||||
group=root
|
group=root
|
||||||
mode=0644
|
mode=0644
|
||||||
|
when: env == "production"
|
||||||
notify:
|
notify:
|
||||||
- reload systemd
|
- reload systemd
|
||||||
- restart fedmsg-hub-3
|
- restart fedmsg-hub-3
|
||||||
|
@ -402,17 +406,19 @@
|
||||||
- config
|
- config
|
||||||
- bodhi
|
- bodhi
|
||||||
|
|
||||||
|
# We can drop this block when we upgrade production to bodhi 4.0.0
|
||||||
- name: have the apache own /var/cache/fedmsg because of course..
|
- name: have the apache own /var/cache/fedmsg because of course..
|
||||||
file: >
|
file: >
|
||||||
path="/var/cache/fedmsg"
|
path="/var/cache/fedmsg"
|
||||||
owner=apache
|
owner=apache
|
||||||
group=apache
|
group=apache
|
||||||
state=directory
|
state=directory
|
||||||
when: inventory_hostname.startswith('bodhi-backend')
|
when: inventory_hostname.startswith('bodhi-backend') and env == "production"
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- bodhi
|
- bodhi
|
||||||
|
|
||||||
|
# We can drop this block when we upgrade production to bodhi 4.0.0
|
||||||
- name: ensure that nrpe has rights to monitor us (dir), including setgid bit.
|
- name: ensure that nrpe has rights to monitor us (dir), including setgid bit.
|
||||||
file: >
|
file: >
|
||||||
dest=/var/run/fedmsg
|
dest=/var/run/fedmsg
|
||||||
|
@ -420,10 +426,12 @@
|
||||||
owner=apache
|
owner=apache
|
||||||
group=nrpe
|
group=nrpe
|
||||||
state=directory
|
state=directory
|
||||||
|
when: env == "production"
|
||||||
tags:
|
tags:
|
||||||
- fedmsgmonitor
|
- fedmsgmonitor
|
||||||
- bodhi
|
- bodhi
|
||||||
|
|
||||||
|
# We can drop this block when we upgrade production to bodhi 4.0.0
|
||||||
- name: ensure that nrpe has rights to monitor us (file)
|
- name: ensure that nrpe has rights to monitor us (file)
|
||||||
file: >
|
file: >
|
||||||
dest=/var/run/fedmsg/monitoring-fedmsg-hub-3.socket
|
dest=/var/run/fedmsg/monitoring-fedmsg-hub-3.socket
|
||||||
|
@ -431,6 +439,7 @@
|
||||||
owner=apache
|
owner=apache
|
||||||
group=nrpe
|
group=nrpe
|
||||||
state=file
|
state=file
|
||||||
|
when: env == "production"
|
||||||
tags:
|
tags:
|
||||||
- fedmsgmonitor
|
- fedmsgmonitor
|
||||||
- bodhi
|
- bodhi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue