|
|
|
|
|
|
|
|
|
|
|
|
|
|
{%- if cluster.engine == "virt" %} |
|
|
{%- if cluster.engine == "virt" %} |
|
|
|
|
|
|
|
|
libvirt_service: |
|
|
|
|
|
|
|
|
salt_libvirt_service: |
|
|
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: |
|
|
- libvirt_service |
|
|
|
|
|
|
|
|
- salt_libvirt_service |
|
|
|
|
|
|
|
|
#salt_control_seed_{{ cluster_name }}_{{ node_name }}: |
|
|
#salt_control_seed_{{ cluster_name }}_{{ node_name }}: |
|
|
# module.run: |
|
|
# module.run: |