lint fixes for the linux module
[mirror/dsa-puppet.git] / modules / stunnel4 / manifests / client.pp
index 43921b0..e34cb10 100644 (file)
@@ -3,12 +3,15 @@ define stunnel4::client($accept, $connecthost, $connectport) {
        include stunnel4
 
        file { "/etc/stunnel/puppet-${name}-peer.pem":
-               content => generate('/bin/cat', "/etc/puppet/modules/exim/files/certs/${connecthost}.crt",
-                       '/etc/puppet/modules/exim/files/certs/ca.crt'),
+               content => inline_template( @("EOF"),
+                                               <%= File.read(scope().call_function("hiera", ["paths.auto_certs_dir"]) + "/" + @connecthost + ".crt") %>
+                                               <%= File.read(scope().call_function("hiera", ["paths.auto_certs_dir"]) + "/ca.crt") %>
+                                               | EOF
+                                       ),
                notify  => Exec["restart_stunnel_${name}"],
        }
 
-       stunnel::generic { $name:
+       stunnel4::generic { $name:
                client  => true,
                verify  => 3,
                cafile  => "/etc/stunnel/puppet-${name}-peer.pem",