From 5bf01f148d2c2db8523febc0d73591444c5965c9 Mon Sep 17 00:00:00 2001 From: nadir Date: Fri, 22 Oct 2010 19:18:12 +0200 Subject: notify => Exec['refresh_apt'] --- manifests/custom_sources.pp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'manifests/custom_sources.pp') 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, - } - } +} -- cgit v1.2.3