saltstack-gdlwolf自学总结第二篇:salt常用帮助查找命令
书接上回: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
1、master端-->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多行
2、minion端-->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多行
3、master端-->查看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常用帮助查找命令相关推荐
- IOC容器特性注入第一篇:程序集反射查找
学习kooboo的框架发现它的注入容器方法比较特别,同样是利用MVC的注入点,但它是查找网站下面bin所有的DLL利用反射查找特性找到对应的服务注入到容器. 这样的好处很简单:完全可以不用关心IOC容 ...
- java设计模式中不属于创建型模式_23种设计模式第二篇:java工厂模式定义:工厂模式是 Java 中最常用的设计模式之一。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式...
23种设计模式第二篇:java工厂模式 定义: 工厂模式是 Java 中最常用的设计模式之一.这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式. 工厂模式主要是为创建对象提供过渡接口, ...
- Elasticsearch学习第二篇--常用的几种搜索方式
Elasticsearch学习第二篇--常用的几种搜索方式 一.Query String Search 查询全部 条件查询 二.Query DSL 查询全部 条件查询 三.Query Filter 四 ...
- IIS负载均衡-Application Request Route详解第二篇:创建与配置Server Farm
自从本系列发布之后,收到了很多的朋友的回复!非常感谢,同时很多朋友问到了一些问题,有些问题是一些比较基本的问题,由于时间的缘故,不会一一的为大家回复,如果有不明白的,希望大家勤自学!本系列虽然不难,但 ...
- IIS负载均衡-Application Request Route详解第二篇:创建与配置Server Farm(转载)
IIS负载均衡-Application Request Route详解第二篇:创建与配置Server Farm 自从本系列发布之后,收到了很多的朋友的回复!非常感谢,同时很多朋友问到了一些问题,有些问 ...
- 战地日记 第二篇 一月总结及一些感想
战地日记 第二篇 一月总结及一些感想 时间过得既慢又快,转眼已经是12月3日了,来兄弟连已经一个多月了,今天刚上完了day28的课,Java基础部分也才考过了,也该总结一下这段时间的学习了. Java ...
- 学习动态性能表 第二篇--v$sesstat
学习动态性能表 第二篇--v$sesstat 按照OracleOnlineBook中的描述,v$sesstat存储session从login到logout的详细资源使用统计. 类似于v$syssta ...
- 第二篇|腾讯开源项目盘点:ncnn、xLua、libco等
开源展示了人类共同协作,成果分享的魅力,每一次技术发展都是站在巨人的肩膀上,技术诸多创新和发展往往就是基于开源发展起来的,没有任何一家网络公司可以不使用开源技术,仅靠自身技术而发展起来. 腾讯开源了个 ...
- [翻译]Go与C#的比较,第二篇:垃圾回收
Go vs C#, part 2: Garbage Collection | by Alex Yakunin | ServiceTitan - Titan Tech | Medium 目录 译者注 什 ...
最新文章
- maven web project打包为war包,目录结构的变化
- java网络编程udp_java网络编程(UDP详解)
- JavaWeb黑马旅游网-学习笔记02【注册功能】
- Java之五种遍历Map集合的方式
- STM32工作笔记0099---Pacman常用命令
- xp 系统不能够通过网络访问解决方法
- THREEJS - 模型的裁切消隐
- LFSR:线性反馈移位寄存器及其应用
- jk背带是什么意思_JK 制服和 LO 装 (科普向)
- implement 和 extends 的区别
- Xcode9中,添加图片素材无法显示的问题
- 网络组建大全(包括企业网、校园网、网吧和基础知识)(转)
- grapher中文版 附序列号
- Datawhale二手车预测Task
- ESP8266+MQTT控制继电器到阿里云
- 2022年亚马逊AWS认证考试及学习路径
- Probability Weighted Compact Feature for Domain Adaptive Retrieval
- java毕业设计NBA论坛系统Mybatis+系统+数据库+调试部署
- windows vc下播放音乐的方法包括wav,mp3格式
- 深入理解计算机系统---文件系统(共享文件)