summaryrefslogtreecommitdiff
path: root/manifests/push.pp
diff options
context:
space:
mode:
authorRaffael Schmid <raffael@yux.ch>2012-02-10 16:32:16 +0100
committerRaffael Schmid <raffael@yux.ch>2012-02-10 16:32:16 +0100
commit938c06b1c4d6c77f85b05112d7312131eafbd4ec (patch)
tree1ec6ff7b64927f5b2966c3caf5cae6bce79ae1d3 /manifests/push.pp
parentfeac1f6d0d8174b7e2827f08d7108eaf20da33c5 (diff)
ready for 2.7 module structure
Diffstat (limited to 'manifests/push.pp')
-rw-r--r--manifests/push.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/push.pp b/manifests/push.pp
new file mode 100644
index 0000000..e799b04
--- /dev/null
+++ b/manifests/push.pp
@@ -0,0 +1,18 @@
+## push.pp
+#
+#define openvpn::push($network, $netmask, $server, $gateway = "undefined") {
+#
+# $gw = $gateway ? {
+# "undefined" => "",
+# default => " ${gateway}"
+# }
+#
+# common::concatfilepart {
+# "push ${name}":
+# ensure => $ensure,
+# file => "/etc/openvpn/${server}.conf",
+# content => "push \"route ${network} ${netmask}${gw}\"\n",
+# notify => Service["openvpn"],
+# require => Package["openvpn"];
+# }
+#}