#cd /etc/salt
#mkdir master.d
#vim node.conf //按组写入文件
nodegroups:
client_all: 'L@192.168._._,192.168._._'
clienta: 'L@192.168.192._' clientb: 'L@192.168.192._'#/etc/init.d/salt-master restart
>>验证测试
salt -N clientb cmd.run 'date'
salt -N client_all cmd.run 'date'