diff options
author | Raffael Schmid <raffael@yux.ch> | 2012-02-10 16:32:16 +0100 |
---|---|---|
committer | Raffael Schmid <raffael@yux.ch> | 2012-02-10 16:32:16 +0100 |
commit | 938c06b1c4d6c77f85b05112d7312131eafbd4ec (patch) | |
tree | 1ec6ff7b64927f5b2966c3caf5cae6bce79ae1d3 /manifests/definitions/option.pp | |
parent | feac1f6d0d8174b7e2827f08d7108eaf20da33c5 (diff) |
ready for 2.7 module structure
Diffstat (limited to 'manifests/definitions/option.pp')
-rw-r--r-- | manifests/definitions/option.pp | 31 |
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; - } -} |