salt.modules.mount

Salt module to manage unix mounts and the fstab file

Members

active

salt.modules.mount.active()

List the active mounts.

CLI Example:

salt '*' mount.active

fstab

salt.modules.mount.fstab(config='/etc/fstab')

List the contents of the fstab

CLI Example:

salt '*' mount.fstab

is_fuse_exec

salt.modules.mount.is_fuse_exec(cmd)

Returns true if the command passed is a fuse mountable application.

CLI Example:

salt '*' mount.is_fuse_exec sshfs

mount

salt.modules.mount.mount(name, device, mkmnt=False, fstype='', opts='defaults')

Mount a device

CLI Example:

salt '*' mount.mount /mnt/foo /dev/sdz1 True

remount

salt.modules.mount.remount(name, device, mkmnt=False, fstype='', opts='defaults')

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

rm_fstab

salt.modules.mount.rm_fstab(name, config='/etc/fstab')

Remove the mount point from the fstab

CLI Example:

salt '*' mount.rm_fstab /mnt/foo

set_fstab

salt.modules.mount.set_fstab(name, device, fstype, opts='defaults', dump=0, pass_num=0, config='/etc/fstab')

Verify that this mount is represented in the fstab, chage the mount point 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

Parent topic

Table Of Contents

Previous topic

salt.modules.moosefs

Next topic

salt.modules.mysql