]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
Include the protocol in the proxy URL
authorGabriel Filion <lelutin@gmail.com>
Mon, 25 Oct 2010 15:58:27 +0000 (11:58 -0400)
committerGabriel Filion <lelutin@gmail.com>
Mon, 25 Oct 2010 18:14:26 +0000 (14:14 -0400)
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>
manifests/proxy_client.pp
templates/20proxy.erb

index 988393300eed83536f350d8a3e729cd837722da4..23e9bd1108b46131a238b45207972458ce68abef 100644 (file)
@@ -1,7 +1,7 @@
 class apt::proxy_client {
 
   $real_apt_proxy = $apt_proxy ? {
-    "" => "localhost",
+    "" => "http://localhost",
     default => $apt_proxy
   }
 
index 36b26a0c802f4f764c2ebe8d6ee53b69374a883f..8f57e730aeaf5aacee6b892fb4107a84026c0c2f 100644 (file)
@@ -1,4 +1,4 @@
 # This file is brought to you by Puppet
 # all local modifications will be overwritten
 
-Acquire::http { Proxy "http://<%= real_apt_proxy %>:<%= real_apt_proxy_port %>"; };
+Acquire::http { Proxy "<%= real_apt_proxy %>:<%= real_apt_proxy_port %>"; };