From: nadir Date: Fri, 22 Oct 2010 17:18:12 +0000 (+0200) Subject: notify => Exec['refresh_apt'] X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5bf01f148d2c2db8523febc0d73591444c5965c9;p=puppet-apt.git notify => Exec['refresh_apt'] --- 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, - } - } +}