X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fssl%2Fmanifests%2Finit.pp;h=ee8306772cd8ec40a930637017bb28dacaeaaa40;hb=5649a4242e4cea08fa81bafc980eed5cdb7e3607;hp=f16e6fdcbbb0fa7935b6ce01b076e3042969331a;hpb=a44f662ab8f6500db0bbd3b8f0eb603b0248319d;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssl/manifests/init.pp b/modules/ssl/manifests/init.pp index f16e6fdcb..ee8306772 100644 --- a/modules/ssl/manifests/init.pp +++ b/modules/ssl/manifests/init.pp @@ -1,6 +1,4 @@ class ssl { - $caconf = '/etc/ca-certificates.conf' - package { 'openssl': ensure => installed, } @@ -29,7 +27,7 @@ class ssl { } file { '/etc/ca-certificates-debian.conf': mode => '0444', - source => 'puppet:///modules/ssl/ca-certificates-debian.conf', + source => 'puppet:///modules/ssl/ca-certificates.conf', notify => Exec['refresh_ca_debian_hashes'], } file { '/etc/ca-certificates-global.conf': @@ -37,11 +35,6 @@ class ssl { notify => Exec['refresh_ca_global_hashes'], } - file { '/etc/apt/apt.conf.d/local-ssl-ca-global': - mode => '0444', - source => 'puppet:///modules/ssl/local-ssl-ca-global', - } - file { '/etc/ssl/certs/ssl-cert-snakeoil.pem': ensure => absent, notify => Exec['refresh_normal_hashes'], @@ -55,9 +48,7 @@ class ssl { } file { '/usr/local/share/ca-certificates/debian.org': - ensure => directory, - source => 'puppet:///modules/ssl/servicecerts/', - mode => '0644', # this works; otherwise all files are +x + ensure => absent, purge => true, recurse => true, force => true, @@ -149,6 +140,12 @@ class ssl { $updatecacerts = $updatecacertsdsa } + file { '/etc/apt/apt.conf.d/local-ssl-ca-global': + mode => '0444', + content => template('ssl/local-ssl-ca-global.erb'), + } + + exec { 'refresh_debian_hashes': command => 'c_rehash /etc/ssl/debian/certs', refreshonly => true,