Saltstack Official Apache Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324
  1. {% from "apache/map.jinja" import apache with context %}
  2. include:
  3. - apache
  4. mod-fcgid:
  5. pkg.installed:
  6. - name: {{ apache.mod_fcgid }}
  7. - order: 180
  8. - require:
  9. - pkg: apache
  10. {% if grains['os_family']=="Debian" %}
  11. a2enmod fcgid for apache.mod_fcgid:
  12. cmd.run:
  13. - name: a2enmod fcgid
  14. - order: 225
  15. - unless: ls /etc/apache2/mods-enabled/fcgid.load
  16. - require:
  17. - pkg: mod-fcgid
  18. - watch_in:
  19. - module: apache-restart
  20. {% endif %}