summaryrefslogtreecommitdiff
path: root/manifests/definitions/option.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/definitions/option.pp
parentfeac1f6d0d8174b7e2827f08d7108eaf20da33c5 (diff)
ready for 2.7 module structure
Diffstat (limited to 'manifests/definitions/option.pp')
-rw-r--r--manifests/definitions/option.pp31
1 files changed, 0 insertions, 31 deletions
diff --git a/manifests/definitions/option.pp b/manifests/definitions/option.pp
deleted file mode 100644
index 8c2a7a2..0000000
--- a/manifests/definitions/option.pp
+++ /dev/null
@@ -1,31 +0,0 @@
-# option.pp
-
-define openvpn::option($ensure = present, $key, $value = "", $server, $client = "", $csc = false) {
- $content = $value ? {
- "" => "${key}",
- default => "${key} ${value}"
- }
-
- if $client == "" {
- $path = "/etc/openvpn/${server}.conf"
- $req = File["/etc/openvpn"]
- $notify = Service["openvpn"]
- } else {
- if $csc {
- $path = "/etc/openvpn/${server}/client-configs/${client}"
- } else {
- $path = "/etc/openvpn/${server}/download-configs/${client}/${client}.conf"
- }
- $req = [ File["/etc/openvpn"], File["/etc/openvpn/${server}/download-configs/${client}"] ]
- $notify = undef
- }
-
- common::concatfilepart {
- "${name}":
- ensure => $ensure,
- file => $path,
- content => "${content}\n",
- notify => $notify,
- require => $req;
- }
-}