fix two templates
[mirror/dsa-puppet.git] / modules / ssl / templates / chained.erb
1 <%=
2   out = ""
3   fn = "/etc/puppet/modules/ssl/files/servicecerts/#{@name}.crt"
4   if File.exist?(fn) then
5     out = File.read(fn)
6
7     chain = "/etc/puppet/modules/ssl/files/chains/#{@name}.crt"
8     out += File.exist?(chain) ? ("\n" + File.read(chain)) : ''
9   else
10     fn = "/etc/puppet/modules/ssl/files/from-letsencrypt/#{@name}.crt-chained"
11     out = File.read(fn)
12   end
13   out
14 %>