aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2015-06-11 11:04:46 -0400
committerGabriel Filion <gabster@lelutin.ca>2015-12-04 12:36:25 -0500
commite4a9222d861ae05a8d9d0a43f2ed4aa0be229390 (patch)
tree4bedf834df211a088f6715505ebb8fa8e03c50a9 /manifests/init.pp
parentbfa973a66896208e2cf0bea37ec15a4f950f09bd (diff)
downloadpuppet-apt-e4a9222d861ae05a8d9d0a43f2ed4aa0be229390.tar.gz
puppet-apt-e4a9222d861ae05a8d9d0a43f2ed4aa0be229390.tar.bz2
move backports to snippets
this allows for third party modules to enable this on the fly
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp17
1 files changed, 16 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index fc93eb3..4f5dd25 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -46,7 +46,7 @@ class apt(
default => $custom_sources_list
}
file {
- # include main, security and backports
+ # include main and security
# additional sources should be included via the apt::sources_list define
'/etc/apt/sources.list':
content => $sources_content,
@@ -98,6 +98,21 @@ class apt(
# backports uses the normal archive key now
package { 'debian-backports-keyring': ensure => absent }
+ if $use_backports {
+ if ($release != "testing" and $release != "unstable" and $release != "experimental") {
+ apt::sources_list {
+ "${codename}-backports":
+ content => "deb $backports_url ${codename}-backports ${apt::real_repos}",
+ }
+ if $include_src {
+ apt::sources_list {
+ "${codename}-backports-src":
+ content => "deb-src $backports_url ${codename}-backports ${apt::real_repos}",
+ }
+ }
+ }
+ }
+
include common::moduledir
common::module_dir { 'apt': }
$apt_base_dir = "${common::moduledir::module_dir_path}/apt"