[%CFEngine BEGIN %] proto udp port $(g.host_data[tunnels][$(openvpn_tunnel.tunnel)][port]) dev-type tun dev tun_$(openvpn_tunnel.tunnel) comp-lzo script-security 2 ping 10 ping-restart 20 ping-timer-rem persist-tun persist-key cipher AES-128-CBC secret /etc/openvpn/common.key ifconfig $(g.host_data[tunnels][$(openvpn_tunnel.tunnel)][ip]) $(g.host_data[tunnels][$(openvpn_tunnel.tunnel)][peer]) [%CFEngine has_ipv6:: %] ifconfig-ipv6 $(g.host_data[tunnels][$(openvpn_tunnel.tunnel)][ip6]) $(g.host_data[tunnels][$(openvpn_tunnel.tunnel)][peer6]) [%CFEngine all:: %] user nobody [%CFEngine centos:: %] group nobody [%CFEngine ubuntu:: %] group nogroup [%CFEngine has_remote:: %] remote $(g.host_data[tunnels][$(openvpn_tunnel.tunnel)][remote_host]) $(g.host_data[tunnels][$(openvpn_tunnel.tunnel)][remote_port]) [%CFEngine END %]