salt.modules.img

Virtual machine image management tools

salt.modules.img.bootstrap(location, size, fmt)

HIGHLY EXPERIMENTAL Bootstrap a virtual machine image

location:
The location to create the image
size:
The size of the image to create in megabytes
fmt:
The image format, raw or qcow2

CLI Example:

salt '*' img.bootstrap /srv/salt-images/host.qcow 4096 qcow2
salt.modules.img.mount_image(location)

Mount the named image and return the mount point

CLI Example:

salt '*' img.mount_image /tmp/foo
salt.modules.img.umount_image(mnt)

Unmount an image mountpoint

CLI Example:

salt '*' img.umount_image /mnt/foo