summaryrefslogtreecommitdiffstats
path: root/roles/static_inventory
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobreli@redhat.com>2017-07-20 14:52:11 +0200
committerTomas Sedovic <tomas@sedovic.cz>2017-07-20 14:52:11 +0200
commit018d410c4d441a8f66e8ac71d82f4ce46b508364 (patch)
tree9449e74fd116ac82d20b8e72843fbb78bc87745a /roles/static_inventory
parent40ae98f486b8d7cbf8d135c818c53192d4c85881 (diff)
downloadopenshift-018d410c4d441a8f66e8ac71d82f4ce46b508364.tar.gz
openshift-018d410c4d441a8f66e8ac71d82f4ce46b508364.tar.bz2
openshift-018d410c4d441a8f66e8ac71d82f4ce46b508364.tar.xz
openshift-018d410c4d441a8f66e8ac71d82f4ce46b508364.zip
Include masters into etcd group, when it is empty (#559)
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
Diffstat (limited to 'roles/static_inventory')
-rw-r--r--roles/static_inventory/templates/inventory.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/static_inventory/templates/inventory.j2 b/roles/static_inventory/templates/inventory.j2
index aa87e2b11..ba806f286 100644
--- a/roles/static_inventory/templates/inventory.j2
+++ b/roles/static_inventory/templates/inventory.j2
@@ -44,6 +44,7 @@ masters.{{ stack_name }}
[etcd:children]
etcd.{{ stack_name }}
+{% if 'etcd' not in groups or groups['etcd']|length == 0 %}masters.{{ stack_name }}{% endif %}
[nodes:children]
masters