|
|
|
|
|
|
|
|
|
|
|
|
|
|
{%- if cluster.engine == "virt" %} |
|
|
{%- if cluster.engine == "virt" %} |
|
|
|
|
|
|
|
|
|
|
|
libvirt_service: |
|
|
|
|
|
service.running: |
|
|
|
|
|
- name: {{ control.virt_service }} |
|
|
|
|
|
- enable: true |
|
|
|
|
|
{%- if grains.get('noservices') %} |
|
|
|
|
|
- onlyif: /bin/false |
|
|
|
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
##Posibility to disable rng device globally for old libvirt version |
|
|
##Posibility to disable rng device globally for old libvirt version |
|
|
{%- if cluster.rng is defined %} |
|
|
{%- if cluster.rng is defined %} |
|
|
{%- set rng = cluster.rng %} |
|
|
{%- set rng = cluster.rng %} |
|
|
|
|
|
|
|
|
{%- endfor %} |
|
|
{%- endfor %} |
|
|
{%- 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: |
|
|
|
|
|
- libvirt_service |
|
|
|
|
|
|
|
|
#salt_control_seed_{{ cluster_name }}_{{ node_name }}: |
|
|
#salt_control_seed_{{ cluster_name }}_{{ node_name }}: |
|
|
# module.run: |
|
|
# module.run: |