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

36 行
1.0KB

  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. include:
  8. - {{ sls_service_running }}
  9. - {{ sls_package_install }}
  10. apache-config-modules-fcgid-pkg:
  11. pkg.installed:
  12. - name: {{ apache.mod_fcgid }}
  13. - order: 180
  14. - require:
  15. - pkg: apache-package-install-pkg-installed
  16. {%- if grains['os_family'] in ('Suse', 'Debian',) %}
  17. cmd.run:
  18. - name: a2enmod fcgid
  19. - order: 225
  20. - unless: ls {{ apache.moddir }}/fcgid.load || egrep "^APACHE_MODULES=" /etc/sysconfig/apache2 | grep ' fcgid'
  21. - require:
  22. - pkg: apache-config-modules-fcgid-pkg
  23. - watch_in:
  24. - module: apache-service-running-restart
  25. - require_in:
  26. - module: apache-service-running-restart
  27. - module: apache-service-running-reload
  28. - service: apache-service-running
  29. {%- endif %}