diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-10-09 13:50:43 -0400 |
---|---|---|
committer | Gabriel Filion <gabster@lelutin.ca> | 2015-12-04 12:36:25 -0500 |
commit | f492e5840b3d2122e347ead5d1c240e794120d0e (patch) | |
tree | ffcdec1ef6290b99638ed73cadfb03ff66130501 | |
parent | e4a9222d861ae05a8d9d0a43f2ed4aa0be229390 (diff) | |
download | puppet-apt-f492e5840b3d2122e347ead5d1c240e794120d0e.tar.gz puppet-apt-f492e5840b3d2122e347ead5d1c240e794120d0e.tar.bz2 |
Switch old $release and $codename local variables to new debian_* facts
-rw-r--r-- | manifests/init.pp | 10 |
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}", } } } |