Missed the - for -y, but also tests were missing lsbdistid
[puppet-modules/puppetlabs-apt.git] / manifests / params.pp
index c9d0344bcb02450c6cd210c192481ded988c9de4..51a01be91a9f07772a606a6afbc30801ccedbc34 100644 (file)
@@ -15,17 +15,23 @@ class apt::params {
           $backports_location = 'http://ftp.debian.org/debian/'
         }
         default: {
-          $backports_location = 'http://ftp.debian.org/debian/'
+          $backports_location = 'http://http.debian.net/debian/'
         }
       }
     }
     'ubuntu': {
       case $::lsbdistcodename {
-        'hardy','lucid','maverick','natty','oneiric','precise': {
+        'hardy','maverick','natty','oneiric','precise': {
+          $backports_location = 'http://us.archive.ubuntu.com/ubuntu'
+          $ppa_options = '-y'
+        }
+        'lucid': {
           $backports_location = 'http://us.archive.ubuntu.com/ubuntu'
+          $ppa_options = undef
         }
         default: {
           $backports_location = 'http://old-releases.ubuntu.com/ubuntu'
+          $ppa_options = '-y'
         }
       }
     }