prod loopback for stg darkserver-backend.
This commit is contained in:
parent
bcbb477bce
commit
acee8317f9
2 changed files with 16 additions and 0 deletions
11
roles/darkserver/backend/files/loopback.py
Normal file
11
roles/darkserver/backend/files/loopback.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
# This file is for staging only.
|
||||
# It instructs all fedmsg processes on this machine to listen to the production
|
||||
# bus.. as a kind of loopback. We have this here so staging darkserver can test
|
||||
# against all of the prod activity.
|
||||
config = {
|
||||
'endpoints': {
|
||||
'production-loopback': [
|
||||
'tcp://hub.fedoraproject.org:9940',
|
||||
],
|
||||
},
|
||||
}
|
|
@ -9,6 +9,11 @@
|
|||
notify:
|
||||
- restart fedmsg-hub
|
||||
|
||||
- name: install a loopback so we listen to the prod fedmsg bus (only in staging)
|
||||
copy: src=loopback.py dest=/etc/fedmsg.d/loopback.py
|
||||
notify: restart fedmsg-hub
|
||||
when: environment == 'staging'
|
||||
|
||||
- name: email.json file
|
||||
copy: src=email.json dest=/etc/darkserver/email.json owner=root group=root mode=0644
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue