fix client specific config
[puppet_openvpn.git] / manifests / definitions / option.pp
index 6c694d4..8c2a7a2 100644 (file)
@@ -5,13 +5,13 @@ define openvpn::option($ensure = present, $key, $value = "", $server, $client =
         ""      => "${key}",
         default => "${key} ${value}"
     }
-    
+
     if $client == "" {
         $path = "/etc/openvpn/${server}.conf"
         $req = File["/etc/openvpn"]
         $notify  = Service["openvpn"]
     } else {
-        if $scs {
+        if $csc {
             $path = "/etc/openvpn/${server}/client-configs/${client}"
         } else {
             $path = "/etc/openvpn/${server}/download-configs/${client}/${client}.conf"
@@ -19,7 +19,7 @@ define openvpn::option($ensure = present, $key, $value = "", $server, $client =
         $req = [ File["/etc/openvpn"], File["/etc/openvpn/${server}/download-configs/${client}"] ]
         $notify = undef
     }
-    
+
     common::concatfilepart {
         "${name}":
             ensure  => $ensure,