2010-10-25 07:44:04 +02:00
|
|
|
class apt::proxy_client {
|
2010-10-18 02:42:09 +02:00
|
|
|
|
|
|
|
$real_apt_proxy = $apt_proxy ? {
|
2010-10-25 17:58:27 +02:00
|
|
|
"" => "http://localhost",
|
2010-10-18 02:42:09 +02:00
|
|
|
default => $apt_proxy
|
|
|
|
}
|
|
|
|
|
|
|
|
$real_apt_proxy_port = $apt_proxy_port ? {
|
|
|
|
"" => "3142",
|
|
|
|
default => $apt_proxy_port
|
|
|
|
}
|
|
|
|
|
2010-10-25 07:44:04 +02:00
|
|
|
apt_conf { "20proxy":
|
2010-10-24 15:07:34 +02:00
|
|
|
content => template("apt/20proxy.erb"),
|
2010-10-18 02:42:09 +02:00
|
|
|
}
|
|
|
|
}
|