f12b007edd
Before, there were two Execs that did an `apt-get update`, `Exec[refresh_apt]` and `Exec[apt_updated]`, which were triggered by different resources. This changes gets rid of the first one, and all resources now depend on `Exec[apt_updated]`.
13 lines
369 B
Puppet
13 lines
369 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['apt_updated'],
|
|
}
|
|
}
|