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