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

    alternatives.display

    Display alternatives settings for defined command name
    
    CLI Example:
    
        salt '*' alternatives.display editor
    

    alternatives.auto

    Trigger alternatives to set the path for <name> as
    specified by priority.
    
    CLI Example:
    
        salt '*' alternatives.auto name
    

    alternatives.install

    Install symbolic links determining default commands
    
    CLI Example:
    
        salt '*' alternatives.install editor /usr/bin/editor /usr/bin/emacs23 50
    

    alternatives.check_exists

    Check if the given path is an alternative for a name.
    
    New in version 2015.8.4
    
    CLI Example:
    
        salt '*' alternatives.check_exists name path
    

    alternatives.set

    Manually set the alternative <path> for <name>.
    
    CLI Example:
    
        salt '*' alternatives.set name path
    

    alternatives.check_installed

    Check if the current highest-priority match for a given alternatives link
    is set to the desired path
    
    CLI Example:
    
        salt '*' alternatives.check_installed name path
    

    alternatives.show_link

    Display master link for the alternative
    
    New in version 2015.8.13,2016.3.4,2016.11.0
    
    CLI Example:
    
        salt '*' alternatives.show_link editor
    

    alternatives.remove

    Remove symbolic links determining the default commands.
    
    CLI Example:
    
        salt '*' alternatives.remove name path
    

    alternatives.show_current

    Display the current highest-priority alternative for a given alternatives
    link
    
    CLI Example:
    
        salt '*' alternatives.show_current editor
    

    我是分割线

  • 相关阅读:
    源码阅读-logback的StaticLoggerBinder如何提供ILoggerFactory的实现类
    源码阅读-logback解析之对接日志门面slf4j
    不可变对象 -final-unmodifiableX
    安全发布对象
    线程安全性-原子性-可见性-有序性
    并发相关基础知识
    并发与高并发介绍
    Spring源码解析-ioc容器的设计
    微服务架构概述
    获取当前时间到毫秒
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_alternatives.html
Copyright © 2011-2022 走看看