Skip to content
Snippets Groups Projects
Select Git revision
  • 8932dc36db9794fa126ff196840ec2adb831fc9c
  • master default protected
  • pymilter-1.0.4
  • pymilter-1.0.3
  • pymilter-1.0.2
  • pymilter-1.0.1
  • pymilter-1_0
  • milter-0_8_18
  • pymilter-0_9_8
  • pymilter-0_9_7
  • pymilter-0_9_6
  • pymilter-0_9_5
  • pymilter-0_9_4
  • pymilter-0_9_2
  • pymilter-0_9_1
  • pymilter-0_9_0
  • pymilter-0_8_12
  • pymilter-0_8_11
  • pymilter-0_8_10
  • pymilter-0_8_9
  • milter-0_8_8
  • milter-0_8_7
22 results

ChangeLog

Blame
  • To find the state of this project's repository at the time of any of these versions, check out the tags.
    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 %}