--- {%- from "openvpn_server/map.jinja" import openvpn_server with context %} {%- for key, instance in openvpn_server.config.items() %} openvpn-server-{{ key }}-service: service.running: - name: openvpn@{{ key }} - enable: True {%- endfor %}