随笔分类 -  5.02 |— SaltStack

摘要:参考源码:https://github.com/unixhot/salt-openstack nova control.sls 阅读全文
posted @ 2019-11-05 14:27 venicid 阅读(174) 评论(0) 推荐(0)
摘要:1、APIS https://docs.saltstack.com/en/latest/topics/api.html 1.python client api 必须运行在master节点上 2. 一般的话,用netapi 基于restful协议的api 1、python client API >>> 阅读全文
posted @ 2019-11-05 14:26 venicid 阅读(344) 评论(0) 推荐(0)
摘要:1、salt无master 官方文档: http://docs.saltstack.cn/topics/tutorials/quickstart.html 1、使用场景 1.在项目中使用salt,写一个state,salt自动帮你配置ok 2.没有master情况,使用salt,比如mac笔记本 3 阅读全文
posted @ 2019-11-04 22:03 venicid 阅读(413) 评论(0) 推荐(0)
摘要:1、如何理解haproxy+keepalived https://www.cnblogs.com/zs-wei/p/9213961.html HaProxy可以通过监听一个统一的端口对外提供能力,然后内部进行分发,相当于nginx 何保证前端程序使用单个ip又能保证后端的实际处理机器为多台,这就是K 阅读全文
posted @ 2019-11-04 16:40 venicid 阅读(313) 评论(0) 推荐(0)
摘要:1、apache+php 前几章的LAMP: https://www.cnblogs.com/venicid/p/11276232.html#_label2 Php放在apache 1、目录结构 2、php安装.sls,配置file 安装 配置文件 3、apache安装.sls,配置file 安装 阅读全文
posted @ 2019-09-17 10:29 venicid 阅读(230) 评论(0) 推荐(0)
摘要:1、服务部署 2、redis(已经完成) https://www.cnblogs.com/venicid/p/11276232.html#_label7_0 3、mysql安装,配置 1、目录结构 module模块 按类型分: 按业务分 Module 模块里面有 mysql redis 等 统一的的 阅读全文
posted @ 2019-09-06 15:43 venicid 阅读(520) 评论(0) 推荐(0)
摘要:https://github.com/unixhot/saltbook-code 1.系统初始化 1.需求梳理 2.salt模块识别 系统初始化 (1)自己用的话 (2)克隆镜像问题,ip 重新生成网卡 https://blog.csdn.net/weixin_42291597/article/de 阅读全文
posted @ 2019-08-08 21:35 venicid 阅读(334) 评论(0) 推荐(0)
摘要:1. 配置管理:state和file https://docs.saltstack.com/en/latest/topics/states/index.html Full list of states 1.state状态模块 希望主机,apache ,启动状态,关闭状态, 写法1 2.file 文件 阅读全文
posted @ 2019-07-31 14:48 venicid 阅读(494) 评论(0) 推荐(0)
摘要:1、salt ssh https://docs.saltstack.com/en/latest/topics/ssh/index.html 免agent的 Salt ssh 串行 执行的时候,发送给其他的,etc目录下,跑完后删除 1.安装 [root@linux-node1 ~]# yum ins 阅读全文
posted @ 2019-07-31 14:24 venicid 阅读(137) 评论(0) 推荐(0)
摘要:0、学习目的 http://docs.saltstack.cn/topics/execution/index.html 官方文档 0.1 命令解释 0.2 学习目的 1、目标Target # Ip地址 # 或者在一个命令中混合使用多target类型: 2、模块Module http://docs.s 阅读全文
posted @ 2019-07-29 22:04 venicid 阅读(279) 评论(0) 推荐(0)
摘要:1. SaltStack数据系统 Grains (谷物) Pillar (支柱) 2.Grains Grains存放着Salt命令启动时收集的信息,运行时不收集 2.1 信息查询 收集资产 网卡,ip,cpu .... (1)收集系统底层的msg (2)查询单个 2.2 匹配minion 在所有ce 阅读全文
posted @ 2019-07-29 18:58 venicid 阅读(257) 评论(0) 推荐(0)
摘要:1.配置管理 1.1 puppet /'pʌpɪt/ 木偶;傀儡;受他人操纵的人 使用自有的puppet描述语言,可管理配置文件、用户、cron任务、软件包、系统服务等。 问题: 学习曲线非常陡峭 centos上装个puppet,Ruby环境让人头大 puppet没有远程执行功能(执行100台服务器 阅读全文
posted @ 2019-07-28 12:05 venicid 阅读(558) 评论(0) 推荐(0)