1 # OpenVPN Puppet module
3 OpenVPN module for puppet including client config/cert creation (tarball to download)
6 - [puppet-concat](https://github.com/ripienaar/puppet-concat)
10 # add a server instance
16 organization => "example.org",
17 email => "root@example.org";
26 "script-security server1":
27 key => "script-security",
37 "ping-timer-rem server1":
38 key => "ping-timer-rem",
40 "persist-tun server1":
43 "persist-key server1":
48 value => "tcp-server",
63 value => "10.10.10.0 255.255.255.0",
65 "client-config-dir server1":
66 key => "client-config-dir",
67 value => "/etc/openvpn/server1/client-configs",
75 value => "/var/run/openvpn-server1.sock unix",
84 "client-to-client server1":
85 key => "client-to-client",
92 [ "client1.example.org", "client2.example.org" ]:
96 # add options to the client-config-dir file
98 "iroute server1 client1.example.org home network":
100 value => "192.168.0.0 255.255.255.0",
101 client => "client1.example.org",
106 # add an option to the client config
108 "ifconfig server1 client2.example.org":
109 key => "ifconfig-push",
110 value => "10.10.10.2 255.255.255.0",
111 client => "client2.example.org",
115 Don't forget the sysctl directive 'net.ipv4.ip_forward'!