fix client specific config
authorRaffael Schmid <raffael@yux.ch>
Thu, 18 Aug 2011 17:54:38 +0000 (19:54 +0200)
committerRaffael Schmid <raffael@yux.ch>
Thu, 18 Aug 2011 17:54:38 +0000 (19:54 +0200)
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,