色魔王子7 发表于 2018-8-1 07:08:51

saltstack学习笔记一

salt \* state.sls web.apache  
VM-242:
  
----------
  
          ID: apache_install
  
    Function: pkg.installed
  
      Name: httpd
  
      Result: True
  
   Comment: Package httpd is already installed.
  
   Started: 13:52:15.979353
  
    Duration: 639.22 ms
  
   Changes:
  
----------
  
          ID: /etc/httpd/conf/httpd.conf
  
    Function: file.managed
  
      Result: True
  
   Comment: File /etc/httpd/conf/httpd.conf is in the correct state
  
   Started: 13:52:16.723650
  
    Duration: 80.393 ms
  
   Changes:
  
----------
  
          ID: apache_install
  
    Function: service.running
  
      Name: httpd
  
      Result: True
  
   Comment: The service httpd is already running
  
   Started: 13:52:16.807976
  
    Duration: 41.296 ms
  
   Changes:
  
----------
  
          ID: /var/www/html/index.html
  
    Function: file.managed
  
      Result: True
  
   Comment: File /var/www/html/index.html updated
  
   Started: 13:52:16.853234
  
    Duration: 16.49 ms
  
   Changes:
  
            ----------
  
            diff:
  
                  New file
  
            mode:
  
                  0644
  

  
Summary
  
------------
  
Succeeded: 4 (changed=1)
  
Failed:    0
  
------------
  
Total states run:   4
页: [1]
查看完整版本: saltstack学习笔记一