Mount any type of mountable filesystem with the mounted function:
/mnt/sdb:
mount.mounted:
- device: /dev/sdb1
- fstype: ext4
- mkmnt: True
- opts:
- defaults
salt.states.mount.mounted(name, device, fstype, mkmnt=False, opts=None, dump=0, pass_num=0, config='/etc/fstab', persist=True)¶Verify that a device is mounted
salt.states.mount.swap(name, persist=True, config='/etc/fstab')¶Activates a swap device
/root/swapfile:
mount.swap
salt.states.mount.unmounted(name, config='/etc/fstab', persist=False)¶Note
This state will be available in version 0.17.0.
Verify that a device is not mounted
Current Salt release: 2014.1.7
Docs for previous releases on salt.rtfd.org.