diff options
author | Bogdan Dobrelya <bdobreli@redhat.com> | 2017-07-20 14:52:11 +0200 |
---|---|---|
committer | Tomas Sedovic <tomas@sedovic.cz> | 2017-07-20 14:52:11 +0200 |
commit | 018d410c4d441a8f66e8ac71d82f4ce46b508364 (patch) | |
tree | 9449e74fd116ac82d20b8e72843fbb78bc87745a /roles/static_inventory | |
parent | 40ae98f486b8d7cbf8d135c818c53192d4c85881 (diff) | |
download | openshift-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.j2 | 1 |
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 |