and use template after setting var
[mirror/dsa-puppet.git] / modules / ssl / manifests / init.pp
index 21e51e6..ee83067 100644 (file)
@@ -35,11 +35,6 @@ class ssl {
                notify  => Exec['refresh_ca_global_hashes'],
        }
 
-       file { '/etc/apt/apt.conf.d/local-ssl-ca-global':
-               mode   => '0444',
-               content => template('ssl/local-ssl-ca-global.erb'),
-       }
-
        file { '/etc/ssl/certs/ssl-cert-snakeoil.pem':
                ensure => absent,
                notify => Exec['refresh_normal_hashes'],
@@ -145,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,