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:
parent
e4fa745ba0
commit
1ce283591f
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue