770f8fb5da
backports_url was already set to the same value than debian_url by default, but it was set to the default value of debian_url. this meant that when giving a url to the debian_url parameter to the apt class, the backports_url would not follow and would still be using the default value for debian_url. with this change, when backports_url is not specified, but debian_url is, then both of them take on the value given to the debian_url. of course if backports_url is also given a value, then it keeps the value given by the user.
19 lines
591 B
Puppet
19 lines
591 B
Puppet
class apt::params () {
|
|
$use_lts = false
|
|
$use_volatile = false
|
|
$use_backports = true
|
|
$include_src = false
|
|
$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 => false,
|
|
}
|
|
$lts_url = $debian_url
|
|
$volatile_url = 'http://volatile.debian.org/debian-volatile/'
|
|
$repos = 'auto'
|
|
$custom_preferences = ''
|
|
$custom_key_dir = false
|
|
}
|