摘要: 首先定义pillar 在top.sls中调用 编写状态模块,根据ip通过pillar判断对应的主机名。 测试执行 [root@web1 base]# salt-ssh '*' state.sls set-hostname test=True tomcat1: ID: alter_hostname F 阅读全文
posted @ 2018-09-28 10:42 流年有爱,岁月静好 阅读(689) 评论(0) 推荐(0) 编辑
摘要: 记录一下shell日志颜色处理 阅读全文
posted @ 2018-09-27 15:41 流年有爱,岁月静好 阅读(904) 评论(0) 推荐(0) 编辑