163: def initialize(hash = {})
164: hash[:Path] ||= "/RPC2"
165: hash[:Server] ||= Puppet[:server]
166: hash[:Port] ||= Puppet[:masterport]
167: hash[:HTTPProxyHost] ||= Puppet[:http_proxy_host]
168: hash[:HTTPProxyPort] ||= Puppet[:http_proxy_port]
169:
170: if "none" == hash[:HTTPProxyHost]
171: hash[:HTTPProxyHost] = nil
172: hash[:HTTPProxyPort] = nil
173: end
174:
175: super(
176: hash[:Server],
177: hash[:Path],
178: hash[:Port],
179: hash[:HTTPProxyHost],
180: hash[:HTTPProxyPort],
181: nil,
182: nil,
183: true,
184: Puppet[:configtimeout]
185: )
186: @http = Puppet::Network::HttpPool.http_instance(@host, @port)
187: end