Stop hardcoding /srv/puppet.debian.org/from-letsencrypt/ all over the place
[mirror/dsa-puppet.git] / modules / ssl / templates / key.erb
index 3fc0794..d3148b8 100644 (file)
@@ -1,5 +1,6 @@
 <%=
-  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
 %>