X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fssl%2Fmanifests%2Fservice.pp;h=f0400525dd76313b9145e5911dacd9be03e0e67c;hb=0b31630538a237b3657d9e12bd5f91f55409156f;hp=0af2e160733ab5a5bb6454129d57c3b926b6f5a8;hpb=2be83a39acf75d45f318fc07ce386a889a72f3e8;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssl/manifests/service.pp b/modules/ssl/manifests/service.pp index 0af2e1607..f0400525d 100644 --- a/modules/ssl/manifests/service.pp +++ b/modules/ssl/manifests/service.pp @@ -7,19 +7,19 @@ define ssl::service($ensure = present, $tlsaport = 443, $notify = []) { file { "/etc/ssl/debian/certs/$name.crt": source => "puppet:///modules/ssl/servicecerts/${name}.crt", - notify => [ Exec['c_rehash /etc/ssl/debian/certs'], $notify ], + notify => [ Exec['refresh_debian_hashes'], $notify ], } file { "/etc/ssl/debian/certs/$name.crt-chain": - source => [ "puppet:///modules/ssl/servicecerts/${name}.crt-chain", "puppet:///modules/ssl/empty" ], - notify => [ Exec['c_rehash /etc/ssl/debian/certs'], $notify ], - links => follow, + source => [ "puppet:///modules/ssl/chains/${name}.crt", "puppet:///modules/ssl/servicecerts/${name}.crt" ], + notify => [ Exec['refresh_debian_hashes'], $notify ], + links => follow, } if $tlsaport > 0 { - dnsextras::tlsa_record{ "tlsa-${tlsaport}": - zone => 'debian.org', + dnsextras::tlsa_record{ "tlsa-${name}-${tlsaport}": + zone => 'debian.org', certfile => "/etc/puppet/modules/ssl/files/servicecerts/${name}.crt", - port => $tlsaport, + port => $tlsaport, hostname => "$name", } }