summaryrefslogtreecommitdiff
path: root/manifests/option.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/option.pp')
-rw-r--r--manifests/option.pp24
1 files changed, 0 insertions, 24 deletions
diff --git a/manifests/option.pp b/manifests/option.pp
deleted file mode 100644
index eb3d5a7..0000000
--- a/manifests/option.pp
+++ /dev/null
@@ -1,24 +0,0 @@
-# option.pp
-
-define openvpn::option($key, $server, $value = '', $client = '', $csc = false) {
- $content = $value ? {
- '' => $key,
- default => "${key} ${value}"
- }
-
- if $client == '' {
- $path = "/etc/openvpn/${server}.conf"
- } else {
- if $csc {
- $path = "/etc/openvpn/${server}/client-configs/${client}"
- } else {
- $path = "/etc/openvpn/${server}/download-configs/${client}/${client}.conf"
- }
- }
-
- concat::fragment {
- "openvpn.${server}.${client}.${name}":
- target => $path,
- content => "${content}\n";
- }
-}