paulbsd-salt/states/geoip/install.sls

14 lines
355 B
Plaintext
Raw Normal View History

2024-04-16 23:29:23 +02:00
---
{%- from "geoip/map.jinja" import geoip with context %}
{% for dbname in geoip.dbs %}
2024-04-16 23:39:06 +02:00
geoip-install-{{ dbname }}:
2024-04-16 23:29:23 +02:00
file.managed:
2024-04-17 08:13:02 +02:00
- name: {{ geoip.basepath }}/{{ dbname }}
2024-04-16 23:29:23 +02:00
- source: {{ geoip.url }}/{{ geoip.version }}/{{ dbname }}
- skip_verify: True
- makedirs: True
- user: root
- group: root
- mode: "0644"
{% endfor %}