|
|
|
|
|
|
|
|
|
|
|
|
|
|
{%- if cluster.engine == "virt" %} |
|
|
{%- if cluster.engine == "virt" %} |
|
|
|
|
|
|
|
|
salt_libvirt_service: |
|
|
|
|
|
|
|
|
salt_libvirt_service_{{ cluster_name }}: |
|
|
service.running: |
|
|
service.running: |
|
|
- name: {{ control.virt_service }} |
|
|
- name: {{ control.virt_service }} |
|
|
- enable: true |
|
|
- enable: true |
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
- unless: virsh list --all --name| grep -E "^{{ node_name }}.{{ cluster.domain }}$" |
|
|
- unless: virsh list --all --name| grep -E "^{{ node_name }}.{{ cluster.domain }}$" |
|
|
- require: |
|
|
- require: |
|
|
- salt_libvirt_service |
|
|
|
|
|
|
|
|
- salt_libvirt_service_{{ cluster_name }} |
|
|
|
|
|
|
|
|
{%- if node.get("autostart", True) %} |
|
|
{%- if node.get("autostart", True) %} |
|
|
|
|
|
|