paulbsd-salt/states/openvpn_client/vpn.conf.j2
2021-08-19 21:15:24 +02:00

29 lines
595 B
Django/Jinja

## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{%- from "openvpn_client/map.jinja" import openvpn_client with context %}
<ca>
{{ openvpn_client.config.vpn.ca }}
</ca>
<cert>
{{ openvpn_client.config.vpn.cert }}
</cert>
<key>
{{ openvpn_client.config.vpn.key }}
</key>
client
remote {{ openvpn_client.config.vpn.global_endpoint_host }} {{ openvpn_client.config.vpn.global_endpoint_port }}
proto {{ openvpn_client.config.vpn.global_endpoint_proto }}
dev tun
topology subnet
keepalive 10 120
nobind
persist-key
persist-tun
compress lzo
fast-io
auth-user-pass private/pass