From 5e4bb96eb552dcf3e2eb95de861617ec32893211 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 9 Dec 2015 18:00:12 +0000 Subject: [PATCH] Lets sort staging hosts in iptables template too --- roles/base/templates/iptables/iptables | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base/templates/iptables/iptables b/roles/base/templates/iptables/iptables index 3061c643b8..b4bcbac1eb 100644 --- a/roles/base/templates/iptables/iptables +++ b/roles/base/templates/iptables/iptables @@ -32,7 +32,7 @@ # production we have marked 'staging-friendly' that we do allow staging to talk to for # mostly read-only data they need. # -{% for host in groups['staging'] %} +{% for host in groups['staging']|sort %} {% if 'eth0_ip' in hostvars[host] %}# {{ host }} -A INPUT -s {{ hostvars[host]['eth0_ip'] }} -j REJECT --reject-with icmp-host-prohibited {% else %}# {{ host }} has no 'eth0_ip' listed