module-apt/manifests/key/plain.pp

14 lines
367 B
ObjectPascal
Raw Normal View History

define apt::key::plain ($source) {
file {
"${apt::apt_base_dir}/keys/${name}":
source => $source;
"${apt::apt_base_dir}/keys":
ensure => directory;
}
exec { "apt-key add ${apt::apt_base_dir}/keys/${name}":
subscribe => File["${apt::apt_base_dir}/keys/${name}"],
refreshonly => true,
notify => Exec['refresh_apt'],
}
}