22.16.80. 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

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Previous topic

22.16.79. salt.modules.htpasswd

Next topic

22.16.81. salt.modules.incron

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.