Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge pull request #242 from hunner/add_unsup
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
params.pp
diff --git
a/manifests/params.pp
b/manifests/params.pp
index aa0f80d60c9d292e04545898ce972c303feaa97b..b35bb1c8d91b0a667d2fbb3a2ae986628db86261 100644
(file)
--- a/
manifests/params.pp
+++ b/
manifests/params.pp
@@
-11,20
+11,32
@@
class apt::params {
'squeeze': {
$backports_location = 'http://backports.debian.org/debian-backports'
}
'squeeze': {
$backports_location = 'http://backports.debian.org/debian-backports'
}
-
default
: {
+
'wheezy'
: {
$backports_location = 'http://ftp.debian.org/debian/'
}
$backports_location = 'http://ftp.debian.org/debian/'
}
+ default: {
+ $backports_location = 'http://http.debian.net/debian/'
+ }
}
}
'ubuntu': {
case $::lsbdistcodename {
}
}
'ubuntu': {
case $::lsbdistcodename {
- 'hardy','
lucid','
maverick','natty','oneiric','precise': {
+ 'hardy','maverick','natty','oneiric','precise': {
$backports_location = 'http://us.archive.ubuntu.com/ubuntu'
$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'
}
default: {
$backports_location = 'http://old-releases.ubuntu.com/ubuntu'
+ $ppa_options = '-y'
}
}
}
}
}
}
+ default: {
+ fail("Unsupported osfamily (${::osfamily}) or lsbdistid (${::lsbdistid})")
+ }
}
}
}
}