Skip to content

saltstack-formulas/mounts-formula

Repository files navigation

mounts

Available states

Mounts a given device/location

Using the format option will format the specified device as ext4 if the device is not already formatted. At present it uses a stateful bash script to do this due to a bug in blockdev.formatted which will be fixed in Salt Carbon.

Testing

Testing is done with kitchen-salt

kitchen converge

Runs the formula

kitchen verify

Runs serverspec tests on the actual instance

kitchen test

Builds and runs test from scratch

kitchen login

Gives you ssh to the vagrant machine for manual testing