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