Merge pull request #445 from mhaskel/updates_everywhere
[puppet-modules/puppetlabs-apt.git] / manifests / update.pp
index 8cb38b226ac672e6f6f1d37d94780da35b72c9b5..6f338f043c692525c71668291d4d8c97a24a2403 100644 (file)
@@ -1,5 +1,4 @@
 class apt::update {
-  include apt::params
   #TODO: to catch if $::apt_update_last_success has the value of -1 here. If we
   #opt to do this, a info/warn would likely be all you'd need likely to happen
   #on the first run, but if it's not run in awhile something is likely borked
@@ -48,14 +47,17 @@ class apt::update {
         $_kick_apt = false
       }
     }
+  } else {
+    $_kick_apt = false
   }
+
   if $_kick_apt {
     $_refresh = false
   } else {
     $_refresh = true
   }
   exec { 'apt_update':
-    command     => "${apt::params::provider} update",
+    command     => "${::apt::provider} update",
     logoutput   => 'on_failure',
     refreshonly => $_refresh,
     timeout     => $apt::update_timeout,