aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-10-06 13:29:38 +0200
committerintrigeri <intrigeri@boum.org>2010-10-06 13:29:38 +0200
commitfab154da39fc3f68e66b8d36f44457533e53dac1 (patch)
tree6e1ccc80690acb443818b5e321ac5bb2eb2c67c3 /manifests
parent6dd66425880e2504c0583b7bf3386243d1208177 (diff)
downloadpuppet-apt-fab154da39fc3f68e66b8d36f44457533e53dac1.tar.gz
puppet-apt-fab154da39fc3f68e66b8d36f44457533e53dac1.tar.bz2
Allow specifying custom mirrors for every supported archive.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp17
1 files changed, 17 insertions, 0 deletions
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,