blob: 3d126db8f5db315e7525dccf80893d982e81d84b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# openvpn.pp -- create a "virtual" OpenVPN Server within a vserver
# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
# See LICENSE for the full license granted to you.
# configures the specified vserver for openvpn hosting
# see also http://oldwiki.linux-vserver.org/some_hints_from_john
# and http://linux-vserver.org/Frequently_Asked_Questions#Can_I_run_an_OpenVPN_Server_in_a_guest.3F
define virtual::openvpn::host() {
include virtual::openvpn::host_base
exec { "mktun for ${name}":
command => "./MAKEDEV tun",
cwd => "/etc/vservers/${name}/vdir/dev",
creates => "/etc/vservers/${name}/vdir/dev/net/tun";
}
}
|