aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-10-10 11:06:07 +0200
committerintrigeri <intrigeri@boum.org>2010-10-10 11:06:07 +0200
commitf0320059a901c8f5f3664bd1d3c6c50e57a05876 (patch)
treed1faf9384c1c92afa08cce3d7c8145bc512fa2e5 /manifests
parentd50104ce10d7709c9c21f475eb6241136f937ad8 (diff)
downloadpuppet-apt-f0320059a901c8f5f3664bd1d3c6c50e57a05876.tar.gz
puppet-apt-f0320059a901c8f5f3664bd1d3c6c50e57a05876.tar.bz2
Add support for customizing the repos list (main, contrib, etc.)
The templates already made use of it, but the code didn't set a default value.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 63f489f..bb3fbef 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -42,6 +42,10 @@ class apt {
'' => 'http://volatile.debian.org/debian-volatile/',
default => "${apt_volatile_url}",
}
+ $repos = $apt_repos ? {
+ '' => 'main contrib non-free',
+ default => "${apt_repos}",
+ }
package { apt:
ensure => installed,