summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authornadir <nadir-technik@nadir.org>2010-10-22 19:18:12 +0200
committernadir <nadir-technik@nadir.org>2010-10-22 19:18:12 +0200
commit5bf01f148d2c2db8523febc0d73591444c5965c9 (patch)
tree4689c81132df69860f27ec3a7db6c5eeddf70262 /manifests
parent851d20a7b621345516e8a8cd83d0970a5ea0521c (diff)
notify => Exec['refresh_apt']
Diffstat (limited to 'manifests')
-rw-r--r--manifests/custom_sources.pp7
1 files changed, 2 insertions, 5 deletions
diff --git a/manifests/custom_sources.pp b/manifests/custom_sources.pp
index cd7b8fc..c9e0b9c 100644
--- a/manifests/custom_sources.pp
+++ b/manifests/custom_sources.pp
@@ -1,10 +1,7 @@
define apt::custom_sources_template ($sources_file = "") {
file { "/etc/apt/sources.list.d/$sources_file":
content => template($name),
+ notify => Exec['refresh_apt']
}
- exec { "/usr/bin/apt-get update":
- subscribe => File["/etc/apt/sources.list.d/$sources_file"],
- refreshonly => true,
- }
- }
+}