]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
Use $ubuntu_url as default value of $backports_url on Ubuntu
authorGabriel Filion <gabster@lelutin.ca>
Fri, 4 Dec 2015 17:33:35 +0000 (12:33 -0500)
committerGabriel Filion <gabster@lelutin.ca>
Fri, 4 Dec 2015 17:36:25 +0000 (12:36 -0500)
Ubuntu shouldn't be using debian backports by default.

This was written by Anoine Beaupré, but split from the commit "move
backports to snippets" since the change is unrelated and needs to be
more visible in the commit history.

manifests/params.pp

index 9c85b6fd7e903c9058617644fd52d5daa3dbde7a..28da13e901c539c27a5d32521da11260e82a1a7c 100644 (file)
@@ -6,13 +6,16 @@ class apt::params () {
   $use_next_release = false
   $debian_url = 'http://httpredir.debian.org/debian/'
   $security_url = 'http://security.debian.org/'
+  $ubuntu_url = 'http://archive.ubuntu.com/ubuntu'
   $backports_url = $::debian_codename ? {
     'squeeze'  => 'http://backports.debian.org/debian-backports/',
-    default => $debian_url
+    default => $::operatingsystem ? {
+      'Ubuntu' => $ubuntu_url,
+      default  => $debian_url,
+    }
   }
   $lts_url = $debian_url
   $volatile_url = 'http://volatile.debian.org/debian-volatile/'
-  $ubuntu_url = 'http://archive.ubuntu.com/ubuntu'
   $repos = 'auto'
   $custom_preferences = ''
   $disable_update = false