甩祸 发表于 2018-7-31 11:24:28

saltstack将minion客户端分组批量处理

# salt -N redhat-group test.ping  
hddcluster3:
  
    True
  
hddcluster1:
  
    True
  
hddcluster4:
  
    True
  
hddcluster2:
  
    True
  
# salt -N centos-group test.ping
  
salt-master:
  
    True
  
salt-minion01:
  
    True
  
#
  

  
# salt -N centos-group cmd.run 'df -h'
  
salt-master:
  
    Filesystem               SizeUsed Avail Use% Mounted on
  
    /dev/mapper/centos-root   50G5.0G   46G10% /
  
    devtmpfs               3.9G   03.9G   0% /dev
  
    tmpfs                  3.9G116K3.9G   1% /dev/shm
  
    tmpfs                  3.9G   41M3.8G   2% /run
  
    tmpfs                  3.9G   03.9G   0% /sys/fs/cgroup
  
    /dev/sda2                494M133M362M27% /boot
  
    /dev/sda1                200M9.5M191M   5% /boot/efi
  
    /dev/mapper/centos-home873G1.3G872G   1% /home
  
    tmpfs                  786M   20K786M   1% /run/user/42
  
    tmpfs                  786M4.0K786M   1% /run/user/0
  
    tmpfs                  3.9G   16K3.9G   1% /tmp
  
salt-minion01:
  
    Filesystem            SizeUsed Avail Use% Mounted on
  
    /dev/mapper/VolGroup-lv_root
  
                        6.5G805M5.4G13% /
  
    tmpfs               245M   12K245M   1% /dev/shm
  
    /dev/vda1             477M   30M422M   7% /boot
  
#
  
# salt -N redhat-centos-group test.ping
  
salt-minion01:
  
    True
  
hddcluster1:
  
    True
页: [1]
查看完整版本: saltstack将minion客户端分组批量处理