24cun_cn 发表于 2018-7-31 10:20:10

saltstack 分组

# /etc/init.d/salt-master restart  
Stopping salt-master daemon:                               [确定]
  
Starting salt-master daemon:                               [确定]
  
# salt -N group01 test.ping
  
node02.saltstack.com:
  
    True
  
node01.saltstack.com:
  
    True
  
# salt -N group02 test.ping
  
node01.saltstack.com:
  
    True
  
node02.saltstack.com:
  
    True
  
# salt -N group03 test.ping
  
node01.saltstack.com:
  
    True
  
node02.saltstack.com:
  
    True
  
# salt -N group01 cmd.run 'uptime'
  
node02.saltstack.com:
  
   22:34:22 up4:25,0 users,load average: 0.00, 0.00, 0.00
  
node01.saltstack.com:
  
   22:34:22 up4:25,1 user,load average: 0.00, 0.00, 0.00
页: [1]
查看完整版本: saltstack 分组