随笔分类 -  salt

摘要:安装net-tools包 因为其余机器没有网络,使用rpm包安装,并添加缺省路由。 阅读全文
posted @ 2018-09-28 14:32 流年有爱,岁月静好 阅读(352) 评论(0) 推荐(0)
摘要:首先定义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 流年有爱,岁月静好 阅读(722) 评论(0) 推荐(0)