1 define ssl::service($ensure = present, $tlsaport = 443, $notify = []) {
2 $link_target = $ensure ? {
5 default => fail ( "Unknown ensure value: '$ensure'" ),
8 file { "/etc/ssl/debian/certs/$name.crt":
9 source => "puppet:///modules/ssl/servicecerts/${name}.crt",
10 notify => [ Exec['c_rehash /etc/ssl/debian/certs'], $notify ],
12 file { "/etc/ssl/debian/certs/$name.crt-chain":
13 source => [ "puppet:///modules/ssl/servicecerts/${name}.crt-chain", "puppet:///modules/ssl/empty" ],
14 notify => [ Exec['c_rehash /etc/ssl/debian/certs'], $notify ],
18 dnsextras::tlsa_record{ "tlsa-${tlsaport}":
20 certfile => "/etc/puppet/modules/ssl/files/servicecerts/${name}.crt",