Stop hardcoding /srv/puppet.debian.org/from-letsencrypt/ all over the place
[mirror/dsa-puppet.git] / modules / ssl / templates / crt-chain.erb
index 94cd708..4caa8b2 100644 (file)
@@ -1,5 +1,6 @@
 <%=
-  fn = "/srv/puppet.debian.org/from-letsencrypt/#{@name}.crt-chain"
+  dir = scope().call_function('hiera', ['paths.letsencrypt_dir'])
+  fn = "#{dir}/#{@name}.crt-chain"
   out = File.read(fn)
   out
 %>