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

    data.items

    Get items from the minion datastore
    
    New in version 2015.8.0
    
    CLI Example:
    
        salt '*' data.items
    

    data.dump

    Replace the entire datastore with a passed data structure
    
    CLI Example:
    
        salt '*' data.dump '{'eggs': 'spam'}'
    

    data.clear

    Clear out all of the data in the minion datastore, this function is
    destructive!
    
    CLI Example:
    
        salt '*' data.clear
    

    data.values

    Get values from the minion datastore
    
    New in version 2015.8.0
    
    CLI Example:
    
        salt '*' data.values
    

    data.cas

    Check and set a value in the minion datastore
    
    CLI Example:
    
        salt '*' data.cas <key> <value> <old_value>
    

    data.has_key

    Check if key is in the minion datastore
    
    New in version 2015.8.0
    
    CLI Example:
    
        salt '*' data.has_key <mykey>
    

    data.get

    Get a (list of) value(s) from the minion datastore
    
    New in version 2015.8.0
    
    CLI Example:
    
        salt '*' data.get key
        salt '*' data.get '["key1", "key2"]'
    

    data.keys

    Get all keys from the minion datastore
    
    New in version 2015.8.0
    
    CLI Example:
    
        salt '*' data.keys
    

    data.pop

    Pop (return & delete) a value from the minion datastore
    
    New in version 2015.5.2
    
    CLI Example:
    
        salt '*' data.pop <key> "there was no val"
    

    data.load

    Return all of the data in the minion datastore
    
    CLI Example:
    
        salt '*' data.load
    

    data.update

    Update a key with a value in the minion datastore
    
    CLI Example:
    
        salt '*' data.update <key> <value>
  • 相关阅读:
    9_4前端(2)css
    9_3前端(1)
    8_23mysql的其他内容(视图等)
    8_22数据库(navicat操作)
    8_21表的查询
    8_20数据库3外键
    E. Pavel and Triangles dp+问题转化
    C. Grid game 思维+问题转化
    B. Game with string 思维问题转化
    D. Game with modulo 交互题(取余(膜)性质)附带a mod b<a/2证明
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_data.html
Copyright © 2011-2022 走看看