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.

31 lines
932B

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