From f0320059a901c8f5f3664bd1d3c6c50e57a05876 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sun, 10 Oct 2010 11:06:07 +0200 Subject: 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. --- manifests/init.pp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'manifests/init.pp') 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, -- cgit v1.2.3