老爷子88 发表于 2018-7-31 12:08:10

saltstack 实战(二)

# salt 'localhost' state.highstate #执行同步  
localhost:
  
----------
  
          ID: /etc/yum.repos.d/remi-php70.repo
  
    Function: file.managed
  
      Result: True
  
   Comment: File /etc/yum.repos.d/remi-php70.repo is in the correct state
  
   Started: 14:27:55.885799
  
    Duration: 6.2 ms
  
   Changes:
  
----------
  
          ID: base_pkgs
  
    Function: pkg.installed
  
      Result: True
  
   Comment: The following packages were installed/updated: iotop, wget, iftop The following packages were already installed: lrzsz, tmux
  
   Started: 14:27:56.095978
  
    Duration: 58007.494 ms
  
   Changes:
  
            ----------
  
            iftop:               #安装iftop 版本为1.0-0.7.pre4.el7
  
                  ----------
  
                  new:
  
                      1.0-0.7.pre4.el7
  
                  old:
  
            iotop:                #安装iotop 版本为0.6-2.el7
  
                  ----------
  
                  new:
  
                      0.6-2.el7
  
                  old:
  
            wget:               #安装wget 版本为1.14-10.el7_0.1
  
                  ----------
  
                  new:
  
                      1.14-10.el7_0.1
  
                  old:
  

  
Summary
  
------------
  
Succeeded: 2 (changed=1)
  
Failed:    0
  
------------
  
Total states run:   2
页: [1]
查看完整版本: saltstack 实战(二)