zoukankan      html  css  js  c++  java
  • Saltstack module cryptdev 详解

    cryptdev.active

    List existing device-mapper device details.
    

    cryptdev.crypttab

    List the contents of the crypttab
    
    CLI Example:
    
        salt '*' cryptdev.crypttab
    

    cryptdev.close

    Close a crypt device using ``cryptsetup``.
    
    CLI Example:
    
        salt '*' cryptdev.close foo
    

    cryptdev.set_crypttab

    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
    

    cryptdev.rm_crypttab

    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
    

    cryptdev.open

    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
  • 相关阅读:
    Array.from和 map的相同用法
    js复制数组的各种方式
    set集合转数组的两种方法
    关于set集合去重的问题
    Object.is判断两个值是否相等
    数组排序
    函数默认值的取值
    标准索引
    pgsql update left join
    linux pgsql
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_cryptdev.html
Copyright © 2011-2022 走看看