dnsextras::tlsa_record{ "tlsa-${sslname}-1873":
zone => 'debian.org',
- certfile => [
- "/etc/puppet/modules/ssl/files/servicecerts/${sslname}.crt",
- "/etc/puppet/modules/ssl/files/from-letsencrypt/${sslname}.crt",
- ],
+ certfile => [ "/srv/puppet.debian.org/from-letsencrypt/${sslname}.crt" ],
port => 1873,
hostname => $sslname,
}
file { "/etc/ssl/debian/certs/$name.crt":
ensure => $ssl_ensure,
- source => [ "puppet:///modules/ssl/servicecerts/${name}.crt", "puppet:///modules/ssl/from-letsencrypt/${name}.crt" ],
+ content => template('ssl/crt.erb'),
notify => [ Exec['refresh_debian_hashes'], $notify ],
}
file { "/etc/ssl/debian/certs/$name.crt-chain":
ensure => $ssl_ensure,
- source => [ "puppet:///modules/ssl/chains/${name}.crt", "puppet:///modules/ssl/servicecerts/${name}.crt", "puppet:///modules/ssl/from-letsencrypt/${name}.crt-chain" ],
+ content => template('ssl/crt-chain.erb'),
notify => [ $notify ],
links => follow,
}
file { "/etc/ssl/debian/certs/$name.crt-chained":
ensure => $ssl_ensure,
- content => template('ssl/chained.erb'),
+ content => template('ssl/crt-chained.erb'),
notify => [ $notify ],
}
if $key {
$portlist = join($tlsaports, "-")
dnsextras::tlsa_record{ "tlsa-${name}-${portlist}":
zone => 'debian.org',
- certfile => [ "/etc/puppet/modules/ssl/files/servicecerts/${name}.crt", "/etc/puppet/modules/ssl/files/from-letsencrypt/${name}.crt" ],
+ certfile => [ "/srv/puppet.debian.org/from-letsencrypt/${name}.crt" ],
port => $tlsaport,
hostname => "$name",
}
+++ /dev/null
-<%=
- 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
- out
-%>
--- /dev/null
+<%=
+ fn = "/srv/puppet.debian.org/from-letsencrypt/#{@name}.crt-chain"
+ out = File.read(fn)
+ out
+%>
--- /dev/null
+<%=
+ fn = "/srv/puppet.debian.org/from-letsencrypt/#{@name}.crt-chained"
+ out = File.read(fn)
+ out
+%>
--- /dev/null
+<%=
+ fn = "/srv/puppet.debian.org/from-letsencrypt/#{@name}.crt"
+ out = File.read(fn)
+ out
+%>
<%=
- 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
%>