From b1df92d258f093546dc8da642baca506014465a8 Mon Sep 17 00:00:00 2001 From: Alexander Chuzhoy Date: Tue, 22 Oct 2019 12:00:08 -0400 Subject: [PATCH] Adding sort to names. Without this sort the names could appear in an arbitrary order in the generated install-config.yaml Signed-off-by: Alexander Chuzhoy --- preflight/install-config.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preflight/install-config.j2 b/preflight/install-config.j2 index 9c00536..7786f77 100644 --- a/preflight/install-config.j2 +++ b/preflight/install-config.j2 @@ -20,7 +20,7 @@ platform: dnsVIP: {{ hostvars[host]['ns1vip'] }} hosts: {% endfor %} -{% for host in groups['masters'] %} +{% for host in groups['masters']|sort %} - name: {{ hostvars[host]['name'] }} role: {{ hostvars[host]['role'] }} bmc: