add $custom_key_dir which lets you specify a directory where you will

place apt repository keys that should be added to apt-key
This commit is contained in:
Micah Anderson 2008-09-29 12:12:31 -04:00
parent e4fa745ba0
commit 1ce283591f

View file

@ -115,7 +115,23 @@ class apt {
}
}
}
case $custom_key_dir {
default: {
file { "${apt_base_dir}/keys.d":
source => "$custom_key_dir",
recurse => yes,
mode => 0755, owner => root, group => root,
}
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];
}
}
}
}
class dselect {
# suppress annoying help texts of dselect