New version of salt-formula from Saltstack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_virt.conf 1.1KB

8 vuotta sitten
8 vuotta sitten
8 vuotta sitten
8 vuotta sitten
8 vuotta sitten
8 vuotta sitten
8 vuotta sitten
12345678910111213141516171819202122232425262728293031323334353637
  1. {% from "salt/map.jinja" import control with context %}
  2. {%- if control.net_profile is defined or control.disk_profile is defined %}
  3. virt:
  4. {%- if control.net_profile is defined %}
  5. nic:
  6. {%- for item_name, item in control.net_profile.iteritems() %}
  7. {{ item_name }}:
  8. {%- for iface_name, iface in item.iteritems() %}
  9. {{ iface_name }}:
  10. {%- if iface.bridge is defined %}
  11. bridge: {{ iface.bridge }}
  12. {%- endif %}
  13. {%- if iface.network is defined %}
  14. network: {{ iface.network }}
  15. {%- endif %}
  16. {%- if iface.model is defined %}
  17. model: {{ iface.model }}
  18. {%- endif %}
  19. {%- endfor %}
  20. {%- endfor %}
  21. {%- endif %}
  22. {%- if control.disk_profile is defined %}
  23. disk:
  24. {%- for item_name, item in control.disk_profile.iteritems() %}
  25. {{ item_name }}:
  26. {%- for disk_name, disk in item.iteritems() %}
  27. - {{ disk }}:
  28. {%- if disk.size is defined %}
  29. size: {{ disk.size }}
  30. {%- endif %}
  31. {%- endfor %}
  32. {%- endfor %}
  33. {%- endif %}
  34. {%- endif %}
  35. virt.images: /var/lib/libvirt/images