aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp16
1 files changed, 16 insertions, 0 deletions
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