配置文件需修改的内容及注意点:

Edit the master config file: 1. Uncomment and change the user: root value to your own user.

默认用户为root,可更改为自己的用户名

2. Uncomment and change the root_dir: / value to point to /path/to/your/virtualenv.

修改环境主路径

3. If you are running version 0.11.1 or older, uncomment and change the pidfile: /var/run/salt-master.pid value to point to /path/to/your/virtualenv/salt-master.pid.

在0.11.1及以前的版本需要把/var/run/salt-master.pid链接到自己的环境路径下的salt-master.pid.

Uncomment and change the id: value to something descriptive like “saltdev”. This isn’t strictly necessary but it will serve as a reminder of which Salt installation you are working with.

设置id的描述,虽然不是必要的但可以便于分清设备

确保你本地的salt安装正确且在运行的一系列操作

verify your local Salt installation is working: cd /path/to/your/virtualenv

salt-master  -c  ./etc/salt -d

salt-minion  -c  ./etc/salt -d

salt-key -c ./etc/salt -L

salt-key -c ./etc/salt -A

salt  -c  ./etc/salt ’*’ test.ping

其中-d为运行在debug模式

If you plan to run salt-call with this self-contained development environment in a masterless setup, you should invoke salt-call with -c /path/to/your/virtualenv/etc/salt so that salt can find the minion config file. Without the -c option, Salt finds its config files in /etc/salt.

如果运行在一个没有master的机器上,需要调用-c以便于设置自己的安装目录,没有-c就默认为/etc/salt

If you would like to log to the console instead of to the log file, remove the -d.

如果你想要把日志输出到控制台而不是log文件,把-d参数去除(安装时的日志输出,参看上文的安装时的命令)

The socket path is limited to 107 characters on Solaris and Linux, and 103 characters on BSD-based systems.

Solaris 和 Linux的 socket路径限制在107字符内,BSD系统限制在103个字符内

File descriptor limits Ensure that the system open file limit is raised to at least 2047:

# check your current limit :ulimit -n

系统可打开文件的数量是2047以上,如果你要查看当前最大可用数量,用命令ulimit -n,如果想提高打开文件的数量,用命令ulimit -n 2047或其他数字,重启后生效

Salt Document学习笔记2的更多相关文章

  1. Salt Document学习笔记1

    原文来自Salt Documentation,作者是 Thomas Hatch),我摘抄部分可能今后会用到或适合入门到精通的一些原文段落,简单翻译后发上来,便于查阅和研究 一.原理方面:The net ...

  2. salt stack学习笔记

    saltstack运行模式: local master/minion salt ssh saltstack三大功能 远程执行命令 配置管理(状态管理) 云管理 安装: master  salt-mas ...

  3. 两千行PHP学习笔记

    亲们,如约而至的PHP笔记来啦~绝对干货! 以下为我以前学PHP时做的笔记,时不时的也会添加一些基础知识点进去,有时还翻出来查查. MySQL笔记:一千行MySQL学习笔记http://www.cnb ...

  4. js学习笔记:webpack基础入门(一)

    之前听说过webpack,今天想正式的接触一下,先跟着webpack的官方用户指南走: 在这里有: 如何安装webpack 如何使用webpack 如何使用loader 如何使用webpack的开发者 ...

  5. swift学习笔记3——类、结构体、枚举

    之前学习swift时的个人笔记,根据github:the-swift-programming-language-in-chinese学习.总结,将重要的内容提取,加以理解后整理为学习笔记,方便以后查询 ...

  6. html5学习笔记一

    HTML5学习笔记 <video>标记:定义视频,Ogg.MPEG4.WebM三种格式 <video src=”movie.ogg”  controls=”controls”> ...

  7. CSS3与页面布局学习笔记(八)——浏览器兼容性问题与前端性能优化方案

    一.浏览器兼容 1.1.概要 世界上没有任何一个浏览器是一样的,同样的代码在不一样的浏览器上运行就存在兼容性问题.不同浏览器其内核亦不尽相同,相同内核的版本不同,相同版本的内核浏览器品牌不一样,各种运 ...

  8. MongoDB学习笔记~环境搭建

    回到目录 Redis学习笔记已经告一段落,Redis仓储也已经实现了,对于key/value结构的redis我更愿意使用它来实现数据集的缓存机制,而对于结构灵活,查询效率高的时候使用redis就有点不 ...

  9. JavaScript闭包(Closure)学习笔记

    闭包(closure)是JavaScript语言的一个难点,也是它的特色,很多高级应用都要依靠闭包实现. 下面就是我的学习笔记,对于JavaScript初学者应该是很有用的. 一.变量的作用域 要理解 ...

随机推荐

  1. 【POJ1734】Sightseeing Trip 无向图最小环

    题目大意:给定一个 N 个顶点的无向图,边有边权,如果存在,求出该无向图的最小环,即:边权和最小的环,并输出路径. 题解:由于无向图,且节点数较少,考虑 Floyd 算法,在最外层刚开始遍历到第 K ...

  2. Mysql经典sql语句大全

    DDL-数据定义语言(Create,Alter,Drop,DECLARE) DML-数据操纵语言(Select,Delete,Update,Insert) DCL-数据控制语言(GRANT,REVOK ...

  3. maveb安装与配置(win10)

    转载:https://www.cnblogs.com/eagle6688/p/7838224.html 看了几篇博客,感觉这篇博客写的含金量最高了,因为我电脑的系统是win10的,所以配置有细微的差别 ...

  4. HTTP Status 405 - HTTP method POST is not supported by this URL

    出现这个问题, 1.在servlet中没有调用post()方法引起的 2.在serlvet中跳转没有用外跳(response.sendRedirect()) 我的是因为第一种,是没有写dopost() ...

  5. ElasticSearch集群介绍二

    ElasticSearch集群 一个运行中的 Elasticsearch 实例称为一个 节点,而集群是由一个或者多个拥有相同 cluster.name 配置的节点组成, 它们共同承担数据和负载的压力. ...

  6. Spring + Mybatis 读写分离

    项目背景:项目开发中数据库使用了读写分离,所有查询语句走从库,除此之外走主库. 实现思路是: 第一步,实现动态切换数据源:配置两个DataSource,配置两个SqlSessionFactory指向两 ...

  7. 记录一个nginx的proxy_pass

    server { listen 80; server_name www.hw801.com; server_name_in_redirect off; access_log /home/logs/ng ...

  8. CentOS6.8下MySQL数据库忘记root密码解决方法

    一.更改my.cnf配置文件 编辑/etc/my.cnf文件,在[mysqld]下添加skip-grant-tables,保存退出.如图: 重启mysql服务:services mysqld rest ...

  9. Linux 命令详解(十一)Shell 解析 json命令jq详解

    前言 在自动化部署中涉及到shell脚本需要动态读取很多配置文件,最好是json格式. 更多jq信息: http://stedolan.github.io/jq/manual/ 一.根据key获取va ...

  10. centos 修改文件权限

    给脚本添加可执行权限: chmod -R 777 filename.sh