|
|
|
|
|
|
|
|
|
|
|
|
|
|
{%- if cluster.engine == "virt" %} |
|
|
{%- if cluster.engine == "virt" %} |
|
|
|
|
|
|
|
|
|
|
|
##Posibility to disable rng device globally for old libvirt version |
|
|
|
|
|
{%- if cluster.rng is defined %} |
|
|
|
|
|
{%- set rng = cluster.rng %} |
|
|
|
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- for node_name, node in cluster.node.iteritems() %} |
|
|
{%- for node_name, node in cluster.node.iteritems() %} |
|
|
|
|
|
|
|
|
{%- if node.name is defined %} |
|
|
{%- if node.name is defined %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{%- set size = control.size.get(node.size) %} |
|
|
{%- set size = control.size.get(node.size) %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
salt_control_virt_{{ cluster_name }}_{{ node_name }}: |
|
|
salt_control_virt_{{ cluster_name }}_{{ node_name }}: |
|
|
module.run: |
|
|
module.run: |
|
|
- name: virtng.init |
|
|
- name: virtng.init |
|
|
|
|
|
|
|
|
- start: True |
|
|
- start: True |
|
|
- disk: {{ size.disk_profile }} |
|
|
- disk: {{ size.disk_profile }} |
|
|
- nic: {{ size.net_profile }} |
|
|
- nic: {{ size.net_profile }} |
|
|
{%- if node.rng is defined %} |
|
|
|
|
|
- rng: {{ node.rng }} |
|
|
|
|
|
|
|
|
{%- if node.rng is defined %} |
|
|
|
|
|
- rng: {{ node.rng }} |
|
|
|
|
|
{%- elif rng is defined %} |
|
|
|
|
|
- rng: {{ rng }} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
- kwargs: |
|
|
- kwargs: |
|
|
seed: True |
|
|
seed: True |