mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-14 22:36:09 +08:00
prod loopback for stg darkserver-backend.
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user