module-apt/manifests/key/plain.pp
2015-06-11 10:26:10 -04:00

13 lines
352 B
Puppet

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