Saltstack Official Apache Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 line
985B

  1. {% from "apache/map.jinja" import apache with context %}
  2. include:
  3. - apache
  4. - apache.mod_actions
  5. {% if grains['os_family']=="Debian" %}
  6. mod-fastcgi:
  7. pkg.installed:
  8. - name: {{ apache.mod_fastcgi }}
  9. - order: 180
  10. - require:
  11. - pkgrepo: repo-fastcgi
  12. - pkg: apache
  13. - watch_in:
  14. - module: apache-restart
  15. - require_in:
  16. - module: apache-restart
  17. - module: apache-reload
  18. - service: apache
  19. repo-fastcgi:
  20. pkgrepo.managed:
  21. - name: "deb http://ftp.us.debian.org/debian {{ grains['oscodename'] }}"
  22. - file: /etc/apt/sources.list.d/non-free.list
  23. - onlyif: grep Debian /proc/version >/dev/null 2>&1
  24. - comps: non-free
  25. a2enmod fastcgi:
  26. cmd.run:
  27. - unless: ls /etc/apache2/mods-enabled/fastcgi.load
  28. - order: 225
  29. - require:
  30. - pkg: mod-fastcgi
  31. - watch_in:
  32. - module: apache-restart
  33. - require_in:
  34. - module: apache-restart
  35. - module: apache-reload
  36. - service: apache
  37. {% endif %}