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