diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index c79c31d..dc868d7 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -138,12 +138,11 @@ 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 { "/usr/bin/apt-key add ${apt_base_dir}/keys.d/* && apt-get update": + exec { "for key in `ls ${apt_base_dir/keys.d/` ; do /usr/bin/apt-key add ${apt_base_dir}/$key && apt-get update": alias => "custom_keys", refreshonly => true, before => File[apt_config]; |