Merge pull request #274 from fdrouet/fix_typo
[puppet-modules/puppetlabs-apt.git] / manifests / params.pp
index c9d0344bcb02450c6cd210c192481ded988c9de4..d23b2db071ab3955fcbf7b2a2b7b39209ce57de2 100644 (file)
@@ -15,19 +15,28 @@ 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': {
+        'precise','trusty': {
+          $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'
         }
       }
     }
+    default: {
+      fail("Unsupported lsbdistid (${::lsbdistid})")
+    }
   }
 }