Handle a RewriteMap for Debian Reference
[mirror/dsa-puppet.git] / modules / stunnel4 / manifests / init.pp
index a71d34f..5e2b8a3 100644 (file)
@@ -1,6 +1,12 @@
 class stunnel4 {
     define stunnel_generic($client, $verify, $cafile, $crlfile=false, $accept, $connect, $local=false) {
         file {
+            "/etc/stunnel":
+                ensure  => directory,
+                owner   => root,
+                group   => root,
+                mode    => 755,
+                ;
             "/etc/stunnel/puppet-${name}.conf":
                 content => template("stunnel4/stunnel.conf.erb"),
                 notify  => Exec['restart_stunnel'],
@@ -30,13 +36,12 @@ class stunnel4 {
             "stunnel-${name}":
                 description => "stunnel ${name}",
                 rule => "&SERVICE_RANGE(tcp, ${accept}, \$HOST_DEBIAN_V4)",
-        }
-        @ferm::rule {
+                ;
             "stunnel-${name}-v6":
                 domain          => 'ip6',
                 description => "stunnel ${name}",
                 rule => "&SERVICE_RANGE(tcp, ${accept}, \$HOST_DEBIAN_V6)",
-            }
+                ;
         }
     }
     define stunnel_client($accept, $connecthost, $connectport) {
@@ -55,7 +60,6 @@ class stunnel4 {
                 cafile => "/etc/stunnel/puppet-${name}-peer.pem",
                 accept => "${accept}",
                 connect => "${connecthost}:${connectport}",
-                require => [ File["/etc/stunnel/puppet-${name}-peer.pem"] ],
                 ;
         }
     }