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.

33 lines
679B

  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://httpredir.debian.org/debian {{ grains['oscodename'] }}"
  16. - file: /etc/apt/sources.list.d/non-free.list
  17. - comps: non-free
  18. a2enmod fastcgi:
  19. cmd.run:
  20. - unless: ls /etc/apache2/mods-enabled/fastcgi.load
  21. - order: 225
  22. - require:
  23. - pkg: mod-fastcgi
  24. - watch_in:
  25. - module: apache-restart
  26. {% endif %}