From 1ce283591fa0a64afdf5dd2c8cb411e4d8d6cc9f Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 29 Sep 2008 12:12:31 -0400 Subject: add $custom_key_dir which lets you specify a directory where you will place apt repository keys that should be added to apt-key --- manifests/init.pp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index a542887..256c56e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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 -- cgit v1.2.3