Remove hardy, maverick, natty
[puppet-modules/puppetlabs-apt.git] / manifests / params.pp
index ae464436dadefdc3a451302ca5819db596f072ca..b5090e0e8cd4e6f78f0dd4cb52cd41da04a5d1d7 100644 (file)
@@ -21,9 +21,9 @@ class apt::params {
     }
     'ubuntu': {
       case $::lsbdistcodename {
-        'hardy','maverick','natty','oneiric','precise': {
+        'oneiric','precise','trusty': {
           $backports_location = 'http://us.archive.ubuntu.com/ubuntu'
-          $ppa_options = 'y'
+          $ppa_options = '-y'
         }
         'lucid': {
           $backports_location = 'http://us.archive.ubuntu.com/ubuntu'
@@ -31,9 +31,12 @@ class apt::params {
         }
         default: {
           $backports_location = 'http://old-releases.ubuntu.com/ubuntu'
-          $ppa_options = 'y'
+          $ppa_options = '-y'
         }
       }
     }
+    default: {
+      fail("Unsupported osfamily (${::osfamily}) or lsbdistid (${::lsbdistid})")
+    }
   }
 }