Use a template to get more of the from-letsencrypt certs and keys, and no longer...
[mirror/dsa-puppet.git] / modules / ssl / templates / key-chained.erb
index 75b3428..a3f9445 100644 (file)
@@ -1,25 +1,10 @@
 <%=
-  out = ""
-  fn = "/etc/puppet/modules/ssl/files/keys/#{@name}.crt"
-  if File.exist?(fn) then
-    out = File.read(fn)
-  else
-    fn = "/etc/puppet/modules/ssl/files/from-letsencrypt/#{@name}.key"
-    out = File.read(fn)
-  end
+  fn = "/srv/puppet.debian.org/from-letsencrypt/#{@name}.key"
+  out = File.read(fn)
   out
 %>
 <%=
-  out = ""
-  fn = "/etc/puppet/modules/ssl/files/servicecerts/#{@name}.crt"
-  if File.exist?(fn) then
-    out = File.read(fn)
-
-    chain = "/etc/puppet/modules/ssl/files/chains/#{@name}.crt"
-    out += File.exist?(chain) ? ("\n" + File.read(chain)) : ''
-  else
-    fn = "/etc/puppet/modules/ssl/files/from-letsencrypt/#{@name}.crt-chained"
-    out = File.read(fn)
-  end
+  fn = "/srv/puppet.debian.org/from-letsencrypt/#{@name}.crt-chained"
+  out = File.read(fn)
   out
 %>