Method: Puppet::HTTP::Proxy.http_proxy_password

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

.http_proxy_passwordObject



112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/puppet/http/proxy.rb', line 112

def self.http_proxy_password
  env = http_proxy_env

  if env and env.password
    return env.password
  end

  if Puppet.settings[:http_proxy_user] == 'none' or Puppet.settings[:http_proxy_password] == 'none'
    return nil
  end

  Puppet.settings[:http_proxy_password]
end