Ver código fonte

Add more precise match if host exists on kvm host

Change-Id: I26aeae62cc1c1d407d36d1d6bf101db073d9e610
pr/retry_dns_sm_failover
Ruslan Usichenko 7 anos atrás
pai
commit
a1a09ef7c6
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      salt/control/virt.sls

+ 2
- 2
salt/control/virt.sls Ver arquivo

@@ -61,7 +61,7 @@ salt_control_virt_{{ cluster_name }}_{{ node_name }}:
seed: True
serial_type: pty
console: True
- unless: virsh list --all | grep {{ node_name }}.{{ cluster.domain }}
- unless: virsh list --all --name| grep -E "^{{ node_name }}.{{ cluster.domain }}$"

#salt_control_seed_{{ cluster_name }}_{{ node_name }}:
# module.run:
@@ -77,7 +77,7 @@ salt_virt_autostart_{{ cluster_name }}_{{ node_name }}:
- name: virt.set_autostart
- vm_: {{ node_name }}.{{ cluster.domain }}
- state: true
- unless: virsh list --autostart | grep {{ node_name }}.{{ cluster.domain }}
- unless: virsh list --autostart --name| grep -E "^{{ node_name }}.{{ cluster.domain }}$"
{%- endif %}

Carregando…
Cancelar
Salvar