module-apt/manifests/proxy_client.pp
Gabriel Filion 26714ae4d2 Include the protocol in the proxy URL
The current proxy_client template makes it possible to communicate with
the proxy only via HTTP. Add the protocol to the variable so that it's
possible to change the protocol.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-25 14:14:26 -04:00

16 lines
296 B
Puppet

class apt::proxy_client {
$real_apt_proxy = $apt_proxy ? {
"" => "http://localhost",
default => $apt_proxy
}
$real_apt_proxy_port = $apt_proxy_port ? {
"" => "3142",
default => $apt_proxy_port
}
apt_conf { "20proxy":
content => template("apt/20proxy.erb"),
}
}