From bf5dc0c192aee1e0f7338f62a16f13e8b1d4bc9a Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 9 Dec 2015 17:54:40 +0000 Subject: [PATCH] Try this and see if it works to sort this into a known order. --- roles/fedmsg/base/templates/endpoints.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/fedmsg/base/templates/endpoints.py.j2 b/roles/fedmsg/base/templates/endpoints.py.j2 index 0bd7f223f3..08ae82866e 100644 --- a/roles/fedmsg/base/templates/endpoints.py.j2 +++ b/roles/fedmsg/base/templates/endpoints.py.j2 @@ -62,7 +62,7 @@ config = dict( # Dynamically generate endpoint declarations from our wsgi app vars. # Eventually, replace *all* fedmsg endpoint definitions with this one loop -{% for host in groups['all'] %} +{% for host in groups['all']|sort %} {% if 'wsgi_fedmsg_service' in hostvars[host] and env == hostvars[host]['env'] %} "{{hostvars[host]['wsgi_fedmsg_service']}}.{{host.split('.')|first}}": [ {% for i in range(hostvars[host]['wsgi_procs'] * hostvars[host]['wsgi_threads']) %}