aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-12-18 16:41:10 -0500
committerMicah Anderson <micah@riseup.net>2012-12-18 16:41:10 -0500
commite66823269e7799d88e5f071b32bd3415c1e477ce (patch)
treef90bba2585d038d421381bf62c86c57feb93b169
parent4f433dbd5238e6b5211d3b0f240ff58031c3da2b (diff)
downloadpuppet-apt-e66823269e7799d88e5f071b32bd3415c1e477ce.tar.gz
puppet-apt-e66823269e7799d88e5f071b32bd3415c1e477ce.tar.bz2
switch default $debian_url to use http.debian.net which is more accurate and up-to-date than cdn.debian.net
-rw-r--r--manifests/init.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 2ae691f..581f058 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -21,7 +21,7 @@ class apt {
}
$debian_url = $apt_debian_url ? {
- '' => 'http://cdn.debian.net/debian/',
+ '' => 'http://http.debian.net/debian/',
default => "${apt_debian_url}",
}
$security_url = $apt_security_url ? {
@@ -68,6 +68,9 @@ class apt {
$codename = $lsbdistcodename
$release = $lsbdistrelease
}
+ 'n/a': {
+ fail("Unknown lsbdistcodename reported by facter: '$lsbdistcodename', please fix this by setting this variable in your manifest.")
+ }
default: {
$codename = $lsbdistcodename
$release = debian_release($codename)