paulbsd-salt/states/geoip/install.sls
Paul 078b97b138
All checks were successful
continuous-integration/drone/push Build is passing
added geoip state
2024-04-16 23:29:23 +02:00

14 lines
359 B
Plaintext

---
{%- from "geoip/map.jinja" import geoip with context %}
{% for dbname in geoip.dbs %}
geoip-geoip-{{ 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 %}