{%- from "openvpn_client/map.jinja" import openvpn with context -%} {%- for client in openvpn.config.vpn.remote_hosts -%} {%- if client.name == salt['grains.get']('host') -%} {{ client.name }} {{ client.password }} {%- endif -%} {%- endfor -%}