Saltstack Official Apache Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

32 行
954B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {%- set tplroot = tpldir.split('/')[0] %}
  4. {%- set sls_service_running = tplroot ~ '.service.running' %}
  5. {%- set sls_package_install = tplroot ~ '.package.install' %}
  6. {%- from tplroot ~ "/map.jinja" import apache with context %}
  7. {%- if grains['os_family'] in ('Suse', 'Debian',) %}
  8. include:
  9. - {{ sls_service_running }}
  10. - {{ sls_package_install }}
  11. - .mod_proxy
  12. apache-config-modules-proxy_fcgi-pkg:
  13. cmd.run:
  14. - name: a2enmod proxy_fcgi
  15. - unless: ls {{ apache.moddir }}/proxy_fcgi.load || egrep "^APACHE_MODULES=" /etc/sysconfig/apache2 | grep proxy_fcgi
  16. - order: 225
  17. - require:
  18. - pkg: apache-package-install-pkg-installed
  19. # cmd: a2enmod proxy
  20. - watch_in:
  21. - module: apache-service-running-restart
  22. - require_in:
  23. - module: apache-service-running-restart
  24. - module: apache-service-running-reload
  25. - service: apache-service-running
  26. {%- endif %}