]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ssl/manifests/service.pp
Do not notify rehash on update of chains
[dsa-puppet.git] / modules / ssl / manifests / service.pp
index ef7d74a133871199b8a2ae2f114ca90d9973197f..54a4110d8387162cf3ff47a70e2a6cd3094e9fa5 100644 (file)
@@ -7,19 +7,23 @@ 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/chains/${name}.crt", "puppet:///modules/ssl/servicecerts/${name}.crt" ],
-               notify => [ Exec['c_rehash /etc/ssl/debian/certs'], $notify ],
-               links => follow,
+               notify => [ $notify ],
+               links  => follow,
+       }
+       file { "/etc/ssl/debian/certs/$name.crt-chained":
+               content => template('ssl/chained.erb'),
+               notify => [ $notify ],
        }
 
        if $tlsaport > 0 {
                dnsextras::tlsa_record{ "tlsa-${name}-${tlsaport}":
-                       zone => 'debian.org',
+                       zone     => 'debian.org',
                        certfile => "/etc/puppet/modules/ssl/files/servicecerts/${name}.crt",
-                       port => $tlsaport,
+                       port     => $tlsaport,
                        hostname => "$name",
                }
        }