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.

mod_rewrite.sls 635B

11 yıl önce
11 yıl önce
11 yıl önce
11 yıl önce
11 yıl önce
11 yıl önce
12345678910111213141516171819202122232425262728
  1. {% from "apache/map.jinja" import apache with context %}
  2. include:
  3. - apache
  4. {% if grains['os_family']=="Debian" %}
  5. a2enmod rewrite:
  6. cmd.run:
  7. - unless: ls /etc/apache2/mods-enabled/rewrite.load
  8. - order: 225
  9. - require:
  10. - pkg: apache
  11. - watch_in:
  12. - module: apache-restart
  13. {% elif grains['os_family']=="FreeBSD" %}
  14. {{ apache.modulesdir }}/040_mod_rewrite.conf:
  15. file.managed:
  16. - source: salt://apache/files/{{ salt['grains.get']('os_family') }}/mod_rewrite.conf.jinja
  17. - mode: 644
  18. - template: jinja
  19. - require:
  20. - pkg: apache
  21. - watch_in:
  22. - module: apache-restart
  23. {% endif %}