]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Move /etc/ssl/servicecerts to usr/local/share/ca-certificates/debian.org
authorPeter Palfrader <peter@palfrader.org>
Mon, 23 Jun 2014 17:31:11 +0000 (19:31 +0200)
committerPeter Palfrader <peter@palfrader.org>
Mon, 23 Jun 2014 17:31:11 +0000 (19:31 +0200)
modules/samhain/templates/samhainrc.erb
modules/ssl/manifests/init.pp

index aabfd768691c70b580f658e0dc7efe613ffbe22b..47a0dd79d674bad3629ec8dad52737599e6f1b37 100644 (file)
@@ -448,7 +448,6 @@ file=/etc/ferm/conf.d/defs.conf
 file=/etc/ferm/ferm.conf
 dir=2/etc/ssl/debian
 dir=1/etc/ssl/certs
-dir=1/etc/ssl/servicecerts
 file=/etc/unbound/unbound.conf
 <% if scope.lookupvar('::fqdn') == "draghi.debian.org" -%>
 file=/etc/openvpn/deb-mgmt-clients.pool
index bc4ae9f095159068ea2cec74d1a011b367ca873e..270a3c0b43948b0eb3abb5c8c1c0e13381dd2a2e 100644 (file)
@@ -14,13 +14,21 @@ class ssl {
        }
 
        file { '/etc/ssl/servicecerts':
+               ensure   => link,
+               purge    => true,
+               force    => true,
+               target   => '/usr/local/share/ca-certificates/debian.org',
+               notify   => Exec['retire_debian_links'],
+       }
+
+       file { '/usr/local/share/ca-certificates/debian.org':
                ensure   => directory,
                source   => 'puppet:///modules/ssl/servicecerts/',
                mode     => '0644', # this works; otherwise all files are +x
                purge    => true,
                recurse  => true,
                force    => true,
-               notify   => Exec['refresh_debian_links'],
+               notify   => Exec['refresh_normal_hashes'],
        }
        file { '/etc/ssl/debian':
                ensure   => directory,
@@ -72,23 +80,11 @@ class ssl {
                require => Package['ssl-cert'],
        }
 
-       exec { 'refresh_debian_links':
-               command     => 'cp -f -s ../servicecerts/* .',
+       exec { 'retire_debian_links':
+               command     => 'find -lname "../servicecerts/*" -exec rm {} +',
                cwd         => '/etc/ssl/certs',
                refreshonly => true,
-               notify      => Exec['delete_unused_links'],
-       }
-       exec { 'delete_unused_links':
-               command     => 'find -L . -mindepth 1 -maxdepth 1 -type l -delete',
-               cwd         => '/etc/ssl/certs',
-               refreshonly => true,
-               notify      => Exec['refresh_normal_hashes'], # see NOTE 1
-       }
-       exec { 'modify_configuration':
-               command     => "sed -i -e 's#!${cacert}#${cacert}#' ${caconf}",
-               onlyif      => "grep -Fqx '!${cacert}' ${caconf}",
                notify      => Exec['refresh_normal_hashes'],
-               require     => Package['ca-certificates'],
        }
        exec { 'refresh_debian_hashes':
                command     => 'c_rehash /etc/ssl/debian/certs',