schroot has to be on hold on wheezy
[mirror/dsa-puppet.git] / modules / site / manifests / aptrepo.pp
index eb03d46..d461807 100644 (file)
@@ -1,12 +1,12 @@
-class site::aptrepo ($key = undef, $template = undef, $config = undef, $ensure = present) {
+define site::aptrepo ($key = undef, $template = undef, $config = undef, $ensure = present) {
 
        if $key {
                exec { "apt-key-update-${name}":
-                       command     => "apt-key add /etc/apt/trusted-keys.d/${name}",
+                       command     => "apt-key add /etc/apt/trusted-keys.d/${name}.asc",
                        refreshonly => true,
                }
 
-               file { "/etc/apt/trusted-keys.d/${name}":
+               file { "/etc/apt/trusted-keys.d/${name}.asc":
                        source => $key,
                        mode   => '0664',
                        notify => Exec["apt-key-update-${name}"]