Salt module to manage unix mounts and the fstab file
List the active mounts.
CLI Example:
salt '*' mount.active
List the contents of the fstab
CLI Example:
salt '*' mount.fstab
Returns true if the command passed is a fuse mountable application.
CLI Example:
salt '*' mount.is_fuse_exec sshfs
Mount a device
CLI Example:
salt '*' mount.mount /mnt/foo /dev/sdz1 True
Attempt to remount a device, if the device is not already mounted, mount is called
CLI Example:
salt '*' mount.remount /mnt/foo /dev/sdz1 True
Remove the mount point from the fstab
CLI Example:
salt '*' mount.rm_fstab /mnt/foo
Verify that this mount is represented in the fstab, change the mount to match the data passed, or add the mount if it is not present.
CLI Example:
salt '*' mount.set_fstab /mnt/foo /dev/sdz1 ext4
Attempt to unmount a device by specifying the directory it is mounted on
CLI Example:
salt '*' mount.umount /mnt/foo