]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
clean up the multiple File subscribes
authorMicah Anderson <micah@riseup.net>
Thu, 2 Sep 2010 23:15:47 +0000 (19:15 -0400)
committerMicah Anderson <micah@riseup.net>
Thu, 2 Sep 2010 23:15:47 +0000 (19:15 -0400)
manifests/init.pp

index 0116ff8c399a2ae46906f110380949a146654e3f..497077bd6a579015aa6c0dc64b0b6d03a8e41a57 100644 (file)
@@ -57,14 +57,11 @@ class apt {
     'refresh_apt':
       command => '/usr/bin/apt-get update && sleep 1',
       refreshonly => true,
-      subscribe => [ File["/etc/apt/sources.list"],
-                     File["/etc/apt/preferences"], 
-                     File["/etc/apt/apt.conf.d"],
+      subscribe => [ File["/etc/apt/sources.list", "/etc/apt/preferences", "/etc/apt/apt.conf.d"],
                      Config_file["apt_config"] ];
       'update_apt':
         command => '/usr/bin/apt-get update && /usr/bin/apt-get autoclean',
-        require => [ File["/etc/apt/sources.list"],
-                     File["/etc/apt/preferences"], Config_file["apt_config"] ],
+        require => [ File["/etc/apt/sources.list", "/etc/apt/preferences"], Config_file["apt_config"] ],
         loglevel => info,
         # Another Semaphor for all packages to reference
         alias => "apt_updated";