aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-09-29 12:12:31 -0400
committerMicah Anderson <micah@riseup.net>2008-09-29 12:12:31 -0400
commit1ce283591fa0a64afdf5dd2c8cb411e4d8d6cc9f (patch)
treefd4447f8a724301bfc973fce12d086847ee3f237 /manifests
parente4fa745ba0b29989d5b133b5c671657a58f04830 (diff)
downloadpuppet-apt-1ce283591fa0a64afdf5dd2c8cb411e4d8d6cc9f.tar.gz
puppet-apt-1ce283591fa0a64afdf5dd2c8cb411e4d8d6cc9f.tar.bz2
add $custom_key_dir which lets you specify a directory where you will
place apt repository keys that should be added to apt-key
Diffstat (limited to 'manifests')
-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