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.

34 line
732B

  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. repo-fastcgi:
  14. pkgrepo.managed:
  15. - name: "deb http://ftp.us.debian.org/debian {{ grains['oscodename'] }}"
  16. - file: /etc/apt/sources.list.d/non-free.list
  17. - onlyif: grep Debian /proc/version >/dev/null 2>&1
  18. - comps: non-free
  19. a2enmod fastcgi:
  20. cmd.run:
  21. - unless: ls /etc/apache2/mods-enabled/fastcgi.load
  22. - order: 225
  23. - require:
  24. - pkg: mod-fastcgi
  25. - watch_in:
  26. - module: apache-restart
  27. {% endif %}