Switch old $release and $codename local variables to new debian_* facts
This commit is contained in:
parent
e4a9222d86
commit
f492e5840b
1 changed files with 5 additions and 5 deletions
|
@ -99,15 +99,15 @@ class apt(
|
||||||
package { 'debian-backports-keyring': ensure => absent }
|
package { 'debian-backports-keyring': ensure => absent }
|
||||||
|
|
||||||
if $use_backports {
|
if $use_backports {
|
||||||
if ($release != "testing" and $release != "unstable" and $release != "experimental") {
|
if (${::debian_release} != "testing" and ${::debian_release} != "unstable" and ${::debian_release} != "experimental") {
|
||||||
apt::sources_list {
|
apt::sources_list {
|
||||||
"${codename}-backports":
|
'backports':
|
||||||
content => "deb $backports_url ${codename}-backports ${apt::real_repos}",
|
content => "deb $backports_url ${::debian_codename}-backports ${apt::real_repos}",
|
||||||
}
|
}
|
||||||
if $include_src {
|
if $include_src {
|
||||||
apt::sources_list {
|
apt::sources_list {
|
||||||
"${codename}-backports-src":
|
'backports-src':
|
||||||
content => "deb-src $backports_url ${codename}-backports ${apt::real_repos}",
|
content => "deb-src $backports_url ${::debian_codename}-backports ${apt::real_repos}",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue