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.

39 lines
717B

  1. {% from "apache/map.jinja" import apache with context %}
  2. {% if grains['os_family']=="RedHat" %}
  3. include:
  4. - apache
  5. mod-geoip:
  6. pkg.installed:
  7. - pkgs:
  8. - GeoIP
  9. - mod_geoip
  10. - require:
  11. - pkg: apache
  12. - watch_in:
  13. - module: apache-restart
  14. geoip conf:
  15. file.managed:
  16. - name: {{ apache.confdir }}/geoip.conf
  17. - user: root
  18. - group: root
  19. - mode: 644
  20. - source:
  21. - salt://apache/files/{{ salt['grains.get']('os_family') }}/geoip.conf
  22. geoip database:
  23. file.managed:
  24. - name: /usr/share/GeoIP/GeoIP.dat
  25. - user: root
  26. - group: root
  27. - mode: 644
  28. - source:
  29. - salt://apache/files/{{ salt['grains.get']('os_family') }}/GeoIP.dat
  30. {% endif %}