module-apt/manifests/key/plain.pp
2015-08-26 23:27:58 -04:00

13 lines
367 B
Puppet

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'],
}
}