X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fssl%2Fmanifests%2Finit.pp;h=756661e06be479782aefc6ef80a16f1d50356a22;hb=0e375233af569acc80ddd55b3e0b4d522eabb04c;hp=636d2b567bdef2a1239959125d459c36c4e2dc19;hpb=958c7e4b9ff1a826751f7020e320e17bb99a37ac;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssl/manifests/init.pp b/modules/ssl/manifests/init.pp index 636d2b567..756661e06 100644 --- a/modules/ssl/manifests/init.pp +++ b/modules/ssl/manifests/init.pp @@ -156,13 +156,19 @@ class ssl { refreshonly => true, require => Package['openssl'], } + if $::hostname == 'godard' { + $extra_ssl_certs_flags = ' --default' + } else { + $extra_ssl_certs_flags = '' + } + exec { 'refresh_normal_hashes': # NOTE 1: always use update-ca-certificates to manage hashes in # /etc/ssl/certs otherwise /etc/ssl/ca-certificates.crt will # get a hash overriding the hash that would have been generated # for another certificate ... which is problem, comrade # NOTE 2: always ask update-ca-certificates to freshen (-f) the links - command => '/usr/sbin/update-ca-certificates -f', + command => "/usr/sbin/update-ca-certificates --fresh${extra_ssl_certs_flags}", refreshonly => true, require => Package['ca-certificates'], }