]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
minor improvements, especially do not refresh apt every run
authormh <mh@immerda.ch>
Sun, 17 Oct 2010 13:18:08 +0000 (15:18 +0200)
committermh <mh@immerda.ch>
Sun, 17 Oct 2010 13:18:08 +0000 (15:18 +0200)
README
manifests/init.pp

diff --git a/README b/README
index 5f8225ab71ab51b7e099c60cc02ec2d8d799ba95..833008e709970b28de7d13d896350f319eeae5aa 100644 (file)
--- a/README
+++ b/README
@@ -89,8 +89,8 @@ Example:
 Resources
 =========
 
-File[apt_config]
-----------------
+Concatenated_file[apt_config]
+-----------------------------
 Use this resource to depend on or add to a completed apt configuration
 
 Exec[apt_updated]
index 12096a09403fd3ec7c14b79c36288c4c03fd7715..675c78d09ac24e29417d1723b8132f9cfd193a0d 100644 (file)
@@ -46,13 +46,13 @@ class apt {
     'refresh_apt':
       command => '/usr/bin/apt-get update && sleep 1',
       refreshonly => true,
-      subscribe => [ File["/etc/apt/sources.list"],
-                     File["/etc/apt/apt.conf.d"],
-                     Concatenated_file[apt_config] ];
+      subscribe => File['/etc/apt/sources.list',
+                        '/etc/apt/apt.conf.d',
+                        '/etc/apt/preferences'];
       'update_apt':
         command => '/usr/bin/apt-get update && /usr/bin/apt-get autoclean',
-        require => [ File["/etc/apt/sources.list"],
-                     File["/etc/apt/preferences"], Concatenated_file[apt_config] ],
+        require => File['/etc/apt/sources.list',
+                        '/etc/apt/preferences'],
         loglevel => info,
         # Another Semaphor for all packages to reference
         alias => apt_updated;