- 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
+ ),