Browse Source

Add more precise match if host exists on kvm host

Change-Id: I26aeae62cc1c1d407d36d1d6bf101db073d9e610
pr/retry_dns_sm_failover
Ruslan Usichenko 7 years ago
parent
commit
a1a09ef7c6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      salt/control/virt.sls

+ 2
- 2
salt/control/virt.sls View File

seed: True seed: True
serial_type: pty serial_type: pty
console: True 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 }}: #salt_control_seed_{{ cluster_name }}_{{ node_name }}:
# module.run: # module.run:
- name: virt.set_autostart - name: virt.set_autostart
- vm_: {{ node_name }}.{{ cluster.domain }} - vm_: {{ node_name }}.{{ cluster.domain }}
- state: true - state: true
- unless: virsh list --autostart | grep {{ node_name }}.{{ cluster.domain }}
- unless: virsh list --autostart --name| grep -E "^{{ node_name }}.{{ cluster.domain }}$"
{%- endif %} {%- endif %}

Loading…
Cancel
Save