]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
fix the custom_key_dir process so it actually works by replacing the
authorMicah Anderson <micah@riseup.net>
Mon, 16 Mar 2009 18:35:33 +0000 (14:35 -0400)
committerMicah Anderson <micah@riseup.net>
Mon, 16 Mar 2009 18:35:33 +0000 (14:35 -0400)
bulky for loop in the exec with a much more simpler process that
works. Also, the recurse over the key dir needed to notify the exec to
trigger it.

manifests/init.pp

index dc868d7b90a1e059428743e57b3b18b0b7ab4818..c79c31d7b54ebec746d822aebea00c2c9ed1847c 100644 (file)
@@ -138,11 +138,12 @@ class apt {
           }
           default: {
             file { "${apt_base_dir}/keys.d":
-              source => "$custom_key_dir",
+              source => "${custom_key_dir}",
               recurse => true,
               mode => 0755, owner => root, group => root,
+              notify => Exec[custom_keys];
             }
-            exec { "for key in `ls ${apt_base_dir/keys.d/` ; do /usr/bin/apt-key add ${apt_base_dir}/$key && apt-get update":
+            exec { "/usr/bin/apt-key add ${apt_base_dir}/keys.d/* && apt-get update":
               alias => "custom_keys",
               refreshonly => true,
               before => File[apt_config];