Method: Puppet::HTTP::Proxy.http_proxy_host

Defined in:
lib/puppet/http/proxy.rb

.http_proxy_hostObject



74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/puppet/http/proxy.rb', line 74

def self.http_proxy_host
  env = http_proxy_env

  if env and env.host
    return env.host
  end

  if Puppet.settings[:http_proxy_host] == 'none'
    return nil
  end

  Puppet.settings[:http_proxy_host]
end