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

    chroot.highstate

    Retrieve the state data from the salt master for this minion and
    execute it inside the chroot.
    
    root
        Path to the chroot environment
    
    For a formal description of the possible parameters accepted in
    this function, check `state.highstate` documentation.
    
    CLI Example:
    
        salt myminion chroot.highstate /chroot
        salt myminion chroot.highstate /chroot pillar='{"foo": "bar"}'
    

    chroot.call

    Executes a Salt function inside a chroot environment.
    
    The chroot does not need to have Salt installed, but Python is
    required.
    
    root
        Path to the chroot environment
    
    function
        Salt execution module function
    
    CLI Example:
    
        salt myminion chroot.call /chroot test.ping
        salt myminion chroot.call /chroot ssh.set_auth_key user key=mykey
    

    chroot.sls

    Execute the states in one or more SLS files inside the chroot.
    
    root
        Path to the chroot environment
    
    saltenv
        Specify a salt fileserver environment to be used when applying
        states
    
    mods
        List of states to execute
    
    test
        Run states in test-only (dry-run) mode
    
    exclude
        Exclude specific states from execution. Accepts a list of sls
        names, a comma-separated string of sls names, or a list of
        dictionaries containing ``sls`` or ``id`` keys. Glob-patterns
        may be used to match multiple states.
    
    For a formal description of the possible parameters accepted in
    this function, check `state.sls` documentation.
    
    CLI Example:
    
        salt '*' chroot.sls /chroot stuff pillar='{"foo": "bar"}'
    

    chroot.exist

    Return True if the chroot environment is present.
    

    chroot.apply

    Apply an state inside a chroot.
    
    This function will call `chroot.highstate` or `chroot.sls` based
    on the arguments passed to this function. It exists as a more
    intuitive way of applying states.
    
    root
        Path to the chroot environment
    
    For a formal description of the possible parameters accepted in
    this function, check `state.apply_` documentation.
    
    CLI Example:
    
        salt myminion chroot.apply /chroot
        salt myminion chroot.apply /chroot stuff
        salt myminion chroot.apply /chroot stuff pillar='{"foo": "bar"}'
    

    chroot.create

    Create a basic chroot environment.
    
    Note that this environment is not functional. The caller needs to
    install the minimal required binaries, including Python if
    chroot.call is called.
    
    root
        Path to the chroot environment
    
    CLI Example:
    
        salt myminion chroot.create /chroot
  • 相关阅读:
    网络基础
    socket编程初识
    socket之黏包
    socketserver和socket的补充(验证客户端合法性)
    操作系统介绍
    进程初识和multiprocessing模块之Process
    进程Process之join、daemon(守护)、terminate(关闭)
    进程间通信(队列、管道)、消费者模型和进程池(apply,apply_async,map)
    数字证书私钥sign及验证
    JAVA获取密钥公钥的keytool的使用
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_chroot.html
Copyright © 2011-2022 走看看