saltstack/salt

View on GitHub
salt/templates/virt/libvirt_volume.jinja

Summary

Maintainability
Test Coverage
<volume>
  <name>{{ name }}/{{ filename }}</name>
  <key>{{ name }}/{{ volname }}</key>
  <source>
  </source>
  <capacity unit='KiB'>{{ size }}</capacity>
  <allocation unit='KiB'>0</allocation>
  <target>
    <path>{{ pool }}{{ name }}/{{ filename }}</path>
    <format type='{{ disktype }}'/>
    <permissions>
      <mode>00</mode>
      <owner>0</owner>
      <group>0</group>
    </permissions>
  </target>
</volume>