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-31 11:55:17 +02:00
|
|
|
exec { "apt-key add '${apt::apt_base_dir}/keys/${name}'":
|
2015-08-27 05:27:58 +02:00
|
|
|
subscribe => File["${apt::apt_base_dir}/keys/${name}"],
|
2015-06-11 16:21:56 +02:00
|
|
|
refreshonly => true,
|
2016-01-26 14:42:17 +01:00
|
|
|
notify => Exec['apt_updated'],
|
2015-06-11 16:21:56 +02:00
|
|
|
}
|
|
|
|
}
|