Try adding greenwave and waiverdb to the stg fedmsg routing policy.

This commit is contained in:
Ralph Bean 2017-10-19 15:19:40 +00:00
parent c81164c668
commit e9cbb411ec
6 changed files with 65 additions and 2 deletions

View file

@ -9,9 +9,9 @@ def invert_fedmsg_policy(groups, vars, env):
"""
if env == 'staging':
hosts = groups['staging'] + groups['fedmsg-qa-network-stg']
hosts = groups['staging'] + groups['fedmsg-qa-network-stg'] + groups['openshift-pseudohosts-stg']
else:
hosts = [h for h in groups['all'] if h not in groups['staging']]
hosts = [h for h in groups['all'] if h not in groups['staging'] + groups['openshift-pseudohosts-stg']]
inverted = {}
for host in hosts:

View file

@ -0,0 +1,10 @@
---
# XXX - this is not really a group of real hosts.
# Instead, it represents an application in openshift.
# See playbooks/openshift-apps/greenwave.yml
fedmsg_certs:
- service: greenwave
can_send:
- logger.log
- greenwave.decision.update

View file

@ -0,0 +1,10 @@
---
# XXX - this is not really a group of real hosts.
# Instead, it represents an application in openshift.
# See playbooks/openshift-apps/greenwave.yml
fedmsg_certs:
- service: greenwave
can_send:
- logger.log
- greenwave.decision.update

View file

@ -0,0 +1,10 @@
---
# XXX - this is not really a group of real hosts.
# Instead, it represents an application in openshift.
# See playbooks/openshift-apps/waiverdb.yml
fedmsg_certs:
- service: waiverdb
can_send:
- logger.log
- waiverdb.waiver.new

View file

@ -0,0 +1,10 @@
---
# XXX - this is not really a group of real hosts.
# Instead, it represents an application in openshift.
# See playbooks/openshift-apps/waiverdb.yml
fedmsg_certs:
- service: waiverdb
can_send:
- logger.log
- waiverdb.waiver.new

View file

@ -1493,3 +1493,26 @@ batcave01.phx2.fedoraproject.org
copr-be.cloud.fedoraproject.org
# bodhi-backend01 gets zombies right at the end of pushes
bodhi-backend01.phx2.fedoraproject.org
# These are groups of "hosts" that are not real hosts, but represent
# applications in openshift. They exists here so that they can declare vars for
# other "global" roles like the fedmsg config.
#[openshift-pseudohosts:children]
#greenwave
#waiverdb
[openshift-pseudohosts-stg:children]
greenwave-stg
waiverdb-stg
#[greenwave]
#greenwave-web-greenwave.app.os.fedoraproject.org
[greenwave-stg]
greenwave-web-greenwave.app.os.stg.fedoraproject.org
#[waiverdb]
#waiverdb-web-waiverdb.app.os.fedoraproject.org
[waiverdb-stg]
waiverdb-web-waiverdb.app.os.stg.fedoraproject.org