look321 发表于 2018-8-1 07:05:09

利用saltstack 部署lnmp环境(yum版本)

# salt-run state.orchestrate lnmp  
openapi.test.dns.com.cn_master:
  
----------
  
          ID: db_setup
  
    Function: salt.state
  
      Result: True
  
   Comment: States ran successfully. No changes made to 192.168.2.36-CentOS.backup.test.backend.
  
   Started: 23:27:11.401701
  
    Duration: 3533.27 ms
  
   Changes:
  
----------
  
          ID: web_setup
  
    Function: salt.state
  
      Result: True
  
   Comment: States ran successfully. Updating 192.168.2.30-centos.public.test.
  
   Started: 23:27:14.936140
  
    Duration: 46763.368 ms
  
   Changes:
  
            192.168.2.30-centos.public.test:
  
            ----------
  
                        ID: nginx
  
                  Function: pkg.installed
  
                  Result: True
  
                   Comment: Package nginx is already installed.
  
                   Started: 23:29:08.840872
  
                  Duration: 971.023 ms
  
                   Changes:
  
            ----------
  
                        ID: nginx
  
                  Function: file.managed
  
                      Name: /etc/nginx/conf.d/default.conf
  
                  Result: True
  
                   Comment: File /etc/nginx/conf.d/default.conf is in the correct state
  
                   Started: 23:29:09.816842
  
                  Duration: 5.82 ms
  
                   Changes:
  
            ----------
  
                        ID: nginx
  
                  Function: service.running
  
                  Result: True
  
                   Comment: Service nginx is already enabled, and is in the desired state
  
                   Started: 23:29:09.822994
  
                  Duration: 273.52 ms
  
                   Changes:
  
            ----------
  
                        ID: php-fpm
  
                  Function: pkg.installed
  
                  Result: True
  
                   Comment: The following packages were installed/updated: php-fpm
  
                   Started: 23:29:10.097200
  
                  Duration: 26085.157 ms
  
                   Changes:
  
                            ----------
  
                            php-fpm:
  
                              ----------
  
                              new:
  
                                    5.3.3-46.el6_6
  
                              old:
  

  
            ----------
  
                        ID: php-fpm
  
                  Function: service.running
  
                  Result: True
  
                   Comment: Started Service php-fpm
  
                   Started: 23:29:36.192137
  
                  Duration: 301.652 ms
  
                   Changes:
  
                            ----------
  
                            php-fpm:
  
                              True
  
            ----------
  
                        ID: php-fpm
  
                  Function: file.managed
  
                      Name: /var/www/html/index.php
  
                  Result: True
  
                   Comment: File /var/www/html/index.php updated
  
                   Started: 23:29:36.499508
  
                  Duration: 23.542 ms
  
                   Changes:
  
                            ----------
  
                            diff:
  
                              New file
  
                            mode:
  
                              0644
  
                            user:
  
                              nginx
  
            ----------
  
                        ID: php-xcache
  
                  Function: pkg.installed
  
                  Result: True
  
                   Comment: The following packages were installed/updated: php-xcache
  
                   Started: 23:29:36.527960
  
                  Duration: 16844.534 ms
  
                   Changes:
  
                            ----------
  
                            php-xcache:
  
                              ----------
  
                              new:
  
                                    3.0.4-1.el6
  
                              old:
  

  

  
            Summary
  
            ------------
  
            Succeeded: 7 (changed=4)
  
            Failed:    0
  
            ------------
  
            Total states run:   7
  

  
Summary
  
------------
  
Succeeded: 2 (changed=1)
  
Failed:    0
  
------------
  
Total states run:   2
页: [1]
查看完整版本: 利用saltstack 部署lnmp环境(yum版本)