Salt module to manage Unix cryptsetup jobs and the crypttab file
New in version 2018.3.0.
List existing device-mapper device details.
Close a crypt device using cryptsetup
.
CLI Example:
salt '*' cryptdev.close foo
List the contents of the crypttab
CLI Example:
salt '*' cryptdev.crypttab
Open a crypt device using cryptsetup
. The keyfile
must not be
None
or 'none'
, because cryptsetup
will otherwise ask for the
password interactively.
CLI Example:
salt '*' cryptdev.open foo /dev/sdz1 /path/to/keyfile
Remove the named mapping from the crypttab. If the described entry does not
exist, nothing is changed, but the command succeeds by returning
'absent'
. If a line is removed, it returns 'change'
.
CLI Example:
salt '*' cryptdev.rm_crypttab foo
Verify that this device is represented in the crypttab, change the device to match the name passed, or add the name if it is not present.
CLI Example:
salt '*' cryptdev.set_crypttab foo /dev/sdz1 mypassword swap,size=256
Generated on December 18, 2024 at 17:29:07 UTC.
You are viewing docs for the previous stable release, 3006.9. Switch to docs for the latest stable release, 3007.1, or to a recent doc build from the master branch.
© 2024 VMware, Inc. | Privacy Policy