]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
notify => Exec['refresh_apt']
authornadir <nadir-technik@nadir.org>
Fri, 22 Oct 2010 17:18:12 +0000 (19:18 +0200)
committernadir <nadir-technik@nadir.org>
Fri, 22 Oct 2010 17:18:12 +0000 (19:18 +0200)
manifests/custom_sources.pp

index cd7b8fcfe0ca54c864350a1ddb601b7b71f8d92a..c9e0b9c86aaf80e20b33e59b6b9881a5fc4e435c 100644 (file)
@@ -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,            
-    }
- }
+}