From fab154da39fc3f68e66b8d36f44457533e53dac1 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 6 Oct 2010 13:29:38 +0200 Subject: Allow specifying custom mirrors for every supported archive. --- manifests/init.pp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'manifests') diff --git a/manifests/init.pp b/manifests/init.pp index 095fe79..63f489f 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -26,6 +26,23 @@ class apt { default => $apt_use_next_release, } + $debian_url = $apt_debian_url ? { + '' => 'http://ftp.debian.org/debian/', + default => "${apt_debian_url}", + } + $security_url = $apt_security_url ? { + '' => 'http://security.debian.org/', + default => "${apt_security_url}", + } + $backports_url = $apt_backports_url ? { + '' => 'http://backports.debian.org/debian-backports/', + default => "${apt_backports_url}", + } + $volatile_url = $apt_volatile_url ? { + '' => 'http://volatile.debian.org/debian-volatile/', + default => "${apt_volatile_url}", + } + package { apt: ensure => installed, require => undef, -- cgit v1.2.3