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.

32 lines
602B

  1. {% if grains['os_family']=="Debian" %}
  2. include:
  3. - apache
  4. - apache.mod_actions
  5. repo-fastcgi:
  6. pkgrepo.managed:
  7. - name: "deb http://httpredir.debian.org/debian jessie"
  8. - file: /etc/apt/sources.list.d/non-free.list
  9. - comps: non-free
  10. mod-fastcgi:
  11. pkg.installed:
  12. - name: {{ apache.mod_fastcgi }}
  13. - order: 180
  14. - require:
  15. - pkg: apache
  16. a2enmod fastcgi:
  17. cmd.run:
  18. - unless: ls /etc/apache2/mods-enabled/fastcgi.load
  19. - order: 225
  20. - require:
  21. - pkgrepo: repo-fastcgi
  22. - pkg: mod-fastcgi
  23. - watch_in:
  24. - module: apache-restart
  25. {% endif %}