Skip to content
Snippets Groups Projects
Select Git revision
  • 1869f875bb96de10cdb018d250990625460cf2b4
  • master default
  • fix-remote-url_v4.9.1
  • fix-remote-url_v4.8.3
  • fix-remote-url_v4.8.x
  • fix-remote-url_v4.7.x
  • fix-remote-url_v4.6.0
  • fix-remote-urls
8 results

questiontestedit.php

Blame
  • mod_geoip.sls 798 B
    {% from "apache/map.jinja" import apache with context %}
    
    {% if 'mod_geoip' in apache %}
    
    include:
      - apache
    
    mod-geoip:
      pkg.installed:
        - pkgs:
          - {{ apache.mod_geoip }}
          - {{ apache.mod_geoip_database }}
        - require:
          - pkg: apache
    
        - watch_in:
          - module: apache-restart
    
    {% if grains['os_family']=="RedHat" %}
    geoip conf:
      file.managed:
        - name: {{ apache.confdir }}/geoip.conf
        - user: root
        - group: root
        - mode: 644
        - source: 
          - salt://apache/files/{{ salt['grains.get']('os_family') }}/geoip.conf
    
    geoip database:
      file.managed:
        - name: /usr/share/GeoIP/GeoIP.dat
        - user: root
        - group: root
        - mode: 644
        - source:
          - salt://apache/files/{{ salt['grains.get']('os_family') }}/GeoIP.dat
    
    {% endif %}
    {% endif %}