aboutsummaryrefslogtreecommitdiff
path: root/manifests/openvpn/server.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/openvpn/server.pp')
-rw-r--r--manifests/openvpn/server.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/openvpn/server.pp b/manifests/openvpn/server.pp
new file mode 100644
index 0000000..b31f80b
--- /dev/null
+++ b/manifests/openvpn/server.pp
@@ -0,0 +1,10 @@
+# actually setup the openvpn server within a vserver
+define virtual::openvpn::server($config) {
+ include virtual::openvpn::base
+ file {
+ "/etc/openvpn/${name}.conf":
+ ensure => present, content => $config,
+ mode => 0644, owner => root, group => 0,
+ notify => Service['openvpn'];
+ }
+}