2015-06-11 16:21:56 +02:00
|
|
|
define apt::key::plain ($source) {
|
|
|
|
file {
|
2015-08-27 05:27:58 +02:00
|
|
|
"${apt::apt_base_dir}/keys/${name}":
|
2015-06-11 16:21:56 +02:00
|
|
|
source => $source;
|
|
|
|
"${apt::apt_base_dir}/keys":
|
|
|
|
ensure => directory;
|
|
|
|
}
|
2015-08-27 05:27:58 +02:00
|
|
|
exec { "apt-key add ${apt::apt_base_dir}/keys/${name}":
|
|
|
|
subscribe => File["${apt::apt_base_dir}/keys/${name}"],
|
2015-06-11 16:21:56 +02:00
|
|
|
refreshonly => true,
|
|
|
|
notify => Exec['refresh_apt'],
|
|
|
|
}
|
|
|
|
}
|