paulbsd-salt/states/openvpn_client/vpn.conf.j2

29 lines
542 B
Plaintext
Raw Normal View History

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