{% from "salt/map.jinja" import control with context %} virt: nic: {%- for item_name, item in control.get('net_profile', {}).iteritems() %} {{ item_name }}: {%- for iface_name, iface in item.iteritems() %} {{ iface_name }}: {%- if iface.bridge is defined %} bridge: {{ iface.bridge }} {%- endif %} {%- if iface.network is defined %} network: {{ iface.network }} {%- endif %} {%- if iface.model is defined %} model: {{ iface.model }} {%- endif %} {%- endfor %} disk: {%- for item_name, item in control.get('disk_profile', {}).iteritems() %} {{ item_name }}: {%- for disk_name, disk in item.iteritems() %} - {{ disk }}: {%- if disk.size is defined %} size: {{ disk.size }} {%- endif %} {%- endfor %} virt.images: /var/lib/libvirt/images