]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
re-added apt::custom_sources_template to deploy custom sources.list.d/xyz.list
authornadir <nadir-technik@nadir.org>
Sat, 9 Oct 2010 12:39:11 +0000 (14:39 +0200)
committernadir <nadir-technik@nadir.org>
Sat, 9 Oct 2010 12:39:11 +0000 (14:39 +0200)
manifests/custom_sources.pp [new file with mode: 0644]
manifests/init.pp

diff --git a/manifests/custom_sources.pp b/manifests/custom_sources.pp
new file mode 100644 (file)
index 0000000..cd7b8fc
--- /dev/null
@@ -0,0 +1,10 @@
+define apt::custom_sources_template ($sources_file = "") {
+    file { "/etc/apt/sources.list.d/$sources_file":
+                   content => template($name),
+     }
+    exec { "/usr/bin/apt-get update":   
+        subscribe => File["/etc/apt/sources.list.d/$sources_file"],
+        refreshonly => true,            
+    }
+ }
+
index 78ae6c5d4a8cc4b5ce39f8c64511477e87a7e8fd..9c33b4d5d9a5f826bccf36b1ed7f81d382711fa5 100644 (file)
@@ -5,6 +5,8 @@
 
 class apt {
 
+  import "custom_sources.pp"
+  
   # See README
   $real_apt_clean = $apt_clean ? {
     '' => 'auto',