14 lines
361 B
Plaintext
14 lines
361 B
Plaintext
---
|
|
{%- from "geoip/map.jinja" import geoip with context %}
|
|
{% for dbname in geoip.dbs %}
|
|
geoip-install-{{ dbname }}:
|
|
file.managed:
|
|
- name: {{ geoip.basepath }}/geoip/{{ dbname }}
|
|
- source: {{ geoip.url }}/{{ geoip.version }}/{{ dbname }}
|
|
- skip_verify: True
|
|
- makedirs: True
|
|
- user: root
|
|
- group: root
|
|
- mode: "0644"
|
|
{% endfor %}
|