summaryrefslogtreecommitdiff
path: root/manifests/key/plain.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-01-26 14:42:17 +0100
committervarac <varacanero@zeromail.org>2016-02-01 20:49:14 +0100
commit474c5f8e9a88ad1edf3b00c90356c88a6c92c18a (patch)
treea15775fa23fda48039a18c5c59f45266880220b4 /manifests/key/plain.pp
parentd459567bf246eee85cd101c2e2f17f451e6230b8 (diff)
[refactor] Unify `apt-get update` into one resource
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]`.
Diffstat (limited to 'manifests/key/plain.pp')
-rw-r--r--manifests/key/plain.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/key/plain.pp b/manifests/key/plain.pp
index e4a2f89..dff8b51 100644
--- a/manifests/key/plain.pp
+++ b/manifests/key/plain.pp
@@ -8,6 +8,6 @@ define apt::key::plain ($source) {
exec { "apt-key add '${apt::apt_base_dir}/keys/${name}'":
subscribe => File["${apt::apt_base_dir}/keys/${name}"],
refreshonly => true,
- notify => Exec['refresh_apt'],
+ notify => Exec['apt_updated'],
}
}