paulbsd-salt/states/openvpn_client/pass.j2

7 lines
243 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
{%- 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 -%}