Nodegroup分组
跳到导航
跳到搜索
nodegroup分组
配置和使用
vi /etc/salt/master #可以在原文件里面改 有样式了 nodegroups: group1: [email protected],host2,host3 nodegroups: redis: '[email protected],192.168.30.96' group1: '[email protected],bar.domain.com,baz.domain.com or bl*.domain.com' 1131 # group2: '[email protected]:Debian and foo.domain.com' 1132 # group3: '[email protected]:Debian and [email protected]' 1133 # group4: 1134 # - '[email protected]:bar' 1135 # - 'or' 1136 # - '[email protected]:baz' service salt-master restart [[email protected] ~]# salt -N redis test.ping 192.168.30.95: True 192.168.30.96: True salt -E 'web0(1|2)' cmd.run 'du -sh /data/*'
问题 : 在线上 有时 非常 的慢
有时有几个 no response web: Minion did not return. [No response]
参考
saltstack(四) saltstack的targeting、分组