我很黑! 发表于 2018-7-31 09:59:04

集中化管理平台saltstack——自动化实现apache的安装与配置

# salt '*' state.sls httpd.apache  server4.lalala.com:
  ----------
  ID: apache-install
  Function: pkg.installed
  Result: True
  Comment: All specified packages are already installed
  Started: 11:42:54.769981
  Duration: 445.517 ms
  Changes:
  ----------
  ID: apache-config
  Function: file.managed
  Name: /etc/httpd/conf/httpd.conf
  Result: True
  Comment: File /etc/httpd/conf/httpd.conf updated
  Started: 11:42:55.217486
  Duration: 45.472 ms
  Changes:
  ----------
  diff:
  ---
  +++
  @@ -133,7 +133,7 @@
  # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  #
  #Listen 12.34.56.78:80
  -Listen 80
  +Listen 8080
  #
  # Dynamic Shared Object (DSO) Support
  ----------
  ID: apache-service
  Function: service.running
  Name: httpd
  Result: True

  Comment: Service>  Started: 11:42:55.395103
  Duration: 75.042 ms
  Changes:
  ----------
  httpd:
  True
  Summary for server4.lalala.com
  ------------
  Succeeded: 3 (changed=2)
  Failed:    0
  ------------
  Total states run:   3
  Total run time: 566.031 ms
页: [1]
查看完整版本: 集中化管理平台saltstack——自动化实现apache的安装与配置