updated haproxy state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2024-04-16 23:42:54 +02:00
parent 80f9d31405
commit c1a7f16773
3 changed files with 4 additions and 18 deletions

View File

@ -30,9 +30,6 @@ haproxy:
enabled: true enabled: true
countries: countries:
FR: OK FR: OK
dbs:
GeoLite2-City.mmdb:
url: https://git.paulbsd.com/paulbsd/GeoLite.mmdb/releases/download/2023.03.26/GeoLite2-City.mmdb
lua_max_mem: 1024 lua_max_mem: 1024
peers: peers:
hosts: [] hosts: []
@ -55,7 +52,7 @@ haproxy:
path: scripts/geoip.lua path: scripts/geoip.lua
lib: false lib: false
args: args:
- /var/lib/haproxy/geoip/GeoLite2-City.mmdb - /usr/share/geoip/GeoLite2-City.mmdb
json: json:
path: scripts/json.lua path: scripts/json.lua
lib: true lib: true

View File

@ -3,6 +3,9 @@
include: include:
{%- if haproxy.acme %} {%- if haproxy.acme %}
- acme - acme
{%- endif %}
{%- if haproxy.config.geoip.enabled %}
- geoip
{%- endif %} {%- endif %}
- .install - .install
- .config - .config

View File

@ -37,20 +37,6 @@ haproxy-script-{{ script }}:
- service: haproxy-service - service: haproxy-service
{% endfor %} {% endfor %}
{% for dbname, params in haproxy.config.geoip.dbs.items() %}
haproxy-geoip-{{ dbname }}:
file.managed:
- name: /var/lib/haproxy/geoip/{{ dbname }}
- source: {{ params.url }}
- skip_verify: True
- makedirs: True
- user: {{ haproxy.config.user }}
- group: {{ haproxy.config.group }}
- mode: "0600"
- watch_in:
- service: haproxy-service
{% endfor %}
haproxy-hatop-download: haproxy-hatop-download:
file.managed: file.managed:
- name: /usr/bin/hatop - name: /usr/bin/hatop