书接上回:saltstack-gdlwolf自学总结第一篇:saltstack的安装部署(YUM安装)

连接地址:http://gdlwolf.blog.51cto.com/343866/1786901

此博文主要记录里下载saltstack中常用的帮助命令,当然也可以自行到saltstack的官方查询,官网地址:

salt官方提供的一些方案

https://github.com/saltstack-formulas

了解YAML

http://docs.saltstack.cn/topics/yaml/index.html

salt模块连接

https://docs.saltstack.com/en/latest/ref/states/all/index.html

saltstack 文件操作 state有很多种方法

https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html

1master-->salt命令帮助查看


[root@salt01 salt]#salt -h
Usage: salt [options]'<target>' <function> [arguments]Options:--version             show program's version number andexit--versions-report     show program's dependencies version numberand exit-h, --help            show this help message and exit--saltfile=SALTFILE   Specify the path to a Saltfile. If notpassed, onewill be searched for inthe current working directory-c CONFIG_DIR, --config-dir=CONFIG_DIRPass in an alternativeconfiguration directory.Default: /etc/salt-t TIMEOUT, --timeout=TIMEOUTChange the timeout, ifapplicable, for the runningcommand; default=5--hard-crash          Raise any original exception ratherthan exitinggracefully Default:False-s, --static          Return the data from minions as agroup after they allreturn.-p, --progress        Display a progress graph. [Requires`progressbar`python package.]#以下省略N多行

2minion-->salt-call帮助查看


[root@salt02 home]# salt-call-h
Usage: salt-call [options]<function> [arguments]Salt call is used to executemodule functions locally on a minionOptions:--version            show program's versionnumber and exit--versions-report     show program's dependencies version numberand exit-h, --help            show this help message and exit--saltfile=SALTFILE   Specify the path to a Saltfile. If notpassed, onewill be searched for inthe current working directory-c CONFIG_DIR, --config-dir=CONFIG_DIRPass in an alternativeconfiguration directory.Default: /etc/salt--hard-crash          Raise any original exception ratherthan exitinggracefully Default:False-g, --grains          Return the information generated bythe salt grains-m MODULE_DIRS, --module-dirs=MODULE_DIRSSpecify an additionaldirectory to pull modules from.Multiple directoriescan be provided by passing `-m/--module-dirs`multiple times.-d, --doc, --documentationReturn thedocumentation for the specified module orfor all modules if noneare specified.--master=MASTER       Specify the master to use. The minionmust beauthenticated with themaster. If this option isomitted, the masteroptions from the minion configwill be used. If multimasters are set up the first
#以下省略N多行

3master-->查看saltstack内置模块信息

3.1、简单查找,不包含详细信息

salt'salt02' sys.list_modules

3.2、较详细的查看salt模块信息

salt 'salt02' sys.list_functions

3.3、较详细的查看salt某一个模块信息(例如status

salt 'salt02'sys.list_functions status

3.4、详细查看salt内置模块,带样例

salt 'salt02' sys.doc

3.5、详细查看salt内置某一个模块(例如status),带样例


salt 'salt02' sys.doc status

转载于:https://blog.51cto.com/gdlwolf/1786904

saltstack-gdlwolf自学总结第二篇:salt常用帮助查找命令相关推荐

  1. IOC容器特性注入第一篇:程序集反射查找

    学习kooboo的框架发现它的注入容器方法比较特别,同样是利用MVC的注入点,但它是查找网站下面bin所有的DLL利用反射查找特性找到对应的服务注入到容器. 这样的好处很简单:完全可以不用关心IOC容 ...

  2. java设计模式中不属于创建型模式_23种设计模式第二篇:java工厂模式定义:工厂模式是 Java 中最常用的设计模式之一。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式...

    23种设计模式第二篇:java工厂模式 定义: 工厂模式是 Java 中最常用的设计模式之一.这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式. 工厂模式主要是为创建对象提供过渡接口, ...

  3. Elasticsearch学习第二篇--常用的几种搜索方式

    Elasticsearch学习第二篇--常用的几种搜索方式 一.Query String Search 查询全部 条件查询 二.Query DSL 查询全部 条件查询 三.Query Filter 四 ...

  4. IIS负载均衡-Application Request Route详解第二篇:创建与配置Server Farm

    自从本系列发布之后,收到了很多的朋友的回复!非常感谢,同时很多朋友问到了一些问题,有些问题是一些比较基本的问题,由于时间的缘故,不会一一的为大家回复,如果有不明白的,希望大家勤自学!本系列虽然不难,但 ...

  5. IIS负载均衡-Application Request Route详解第二篇:创建与配置Server Farm(转载)

    IIS负载均衡-Application Request Route详解第二篇:创建与配置Server Farm 自从本系列发布之后,收到了很多的朋友的回复!非常感谢,同时很多朋友问到了一些问题,有些问 ...

  6. 战地日记 第二篇 一月总结及一些感想

    战地日记 第二篇 一月总结及一些感想 时间过得既慢又快,转眼已经是12月3日了,来兄弟连已经一个多月了,今天刚上完了day28的课,Java基础部分也才考过了,也该总结一下这段时间的学习了. Java ...

  7. 学习动态性能表 第二篇--v$sesstat

    学习动态性能表 第二篇--v$sesstat  按照OracleOnlineBook中的描述,v$sesstat存储session从login到logout的详细资源使用统计. 类似于v$syssta ...

  8. 第二篇|腾讯开源项目盘点:ncnn、xLua、libco等

    开源展示了人类共同协作,成果分享的魅力,每一次技术发展都是站在巨人的肩膀上,技术诸多创新和发展往往就是基于开源发展起来的,没有任何一家网络公司可以不使用开源技术,仅靠自身技术而发展起来. 腾讯开源了个 ...

  9. [翻译]Go与C#的比较,第二篇:垃圾回收

    Go vs C#, part 2: Garbage Collection | by Alex Yakunin | ServiceTitan - Titan Tech | Medium 目录 译者注 什 ...

最新文章

  1. maven web project打包为war包,目录结构的变化
  2. java网络编程udp_java网络编程(UDP详解)
  3. JavaWeb黑马旅游网-学习笔记02【注册功能】
  4. Java之五种遍历Map集合的方式
  5. STM32工作笔记0099---Pacman常用命令
  6. xp 系统不能够通过网络访问解决方法
  7. THREEJS - 模型的裁切消隐
  8. LFSR:线性反馈移位寄存器及其应用
  9. jk背带是什么意思_JK 制服和 LO 装 (科普向)
  10. implement 和 extends 的区别
  11. Xcode9中,添加图片素材无法显示的问题
  12. 网络组建大全(包括企业网、校园网、网吧和基础知识)(转)
  13. grapher中文版 附序列号
  14. Datawhale二手车预测Task
  15. ESP8266+MQTT控制继电器到阿里云
  16. 2022年亚马逊AWS认证考试及学习路径
  17. Probability Weighted Compact Feature for Domain Adaptive Retrieval
  18. java毕业设计NBA论坛系统Mybatis+系统+数据库+调试部署
  19. windows vc下播放音乐的方法包括wav,mp3格式
  20. 深入理解计算机系统---文件系统(共享文件)

热门文章

  1. python十五:函数作用域-函数即变量
  2. 记mac电脑下pycharm配置qt-creator开发环境
  3. 星云精准测试之用例魔方
  4. MySQL数据库从windows迁移到linux
  5. Oracle Dataguard之Real-Time Apply
  6. 为何断点不停 Application_Start()方法
  7. 在.net中如何禁用或启用DropDownList的Items
  8. Unsafe(转载)
  9. bartender2020中文版
  10. 软件架构设计——解释器模式