Explorar o código

Include masters into etcd group, when it is empty (#559)

Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
Bogdan Dobrelya %!s(int64=7) %!d(string=hai) anos
pai
achega
018d410c4d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      roles/static_inventory/templates/inventory.j2

+ 1 - 0
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