summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-10-09 13:50:43 -0400
committerGabriel Filion <gabster@lelutin.ca>2015-12-04 12:36:25 -0500
commitf492e5840b3d2122e347ead5d1c240e794120d0e (patch)
treeffcdec1ef6290b99638ed73cadfb03ff66130501
parente4a9222d861ae05a8d9d0a43f2ed4aa0be229390 (diff)
Switch old $release and $codename local variables to new debian_* facts
-rw-r--r--manifests/init.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 4f5dd25..16593c7 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -99,15 +99,15 @@ class apt(
package { 'debian-backports-keyring': ensure => absent }
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 {
- "${codename}-backports":
- content => "deb $backports_url ${codename}-backports ${apt::real_repos}",
+ 'backports':
+ content => "deb $backports_url ${::debian_codename}-backports ${apt::real_repos}",
}
if $include_src {
apt::sources_list {
- "${codename}-backports-src":
- content => "deb-src $backports_url ${codename}-backports ${apt::real_repos}",
+ 'backports-src':
+ content => "deb-src $backports_url ${::debian_codename}-backports ${apt::real_repos}",
}
}
}