fix for loop for config values

This commit is contained in:
Elouin 2024-11-10 17:17:11 +01:00
parent c3ea2c6414
commit fdcc937124

View file

@ -5,7 +5,7 @@ Description=VoxeLibre Server
Image={{ salt['pillar.get']('voxelibre:image:path', 'codeberg.org/elouin/voxelibre') }}:{{ salt['pillar.get']('voxelibre:image:version', '0.87.2-1') }} Image={{ salt['pillar.get']('voxelibre:image:path', 'codeberg.org/elouin/voxelibre') }}:{{ salt['pillar.get']('voxelibre:image:version', '0.87.2-1') }}
Volume=voxelibre.volume:/var/lib/minetest/.minetest/worlds Volume=voxelibre.volume:/var/lib/minetest/.minetest/worlds
PublishPort={{ salt['pillar.get']('voxelibre:port', "30000") }}:30000/udp PublishPort={{ salt['pillar.get']('voxelibre:port', "30000") }}:30000/udp
{% for option, value in pillar.get('voxelibre:config', {}).items() %} {% for option, value in salt['pillar.get']('voxelibre:config').items() %}
Environment={{ option }}={{ value }} Environment={{ option }}={{ value }}
{% endfor %} {% endfor %}