Package up2date_client :: Module config
[hide private]
[frames] | no frames]

Module config

source code

This module includes the Config and Up2date Config classes use by the up2date agent to hold config info.

Classes [hide private]
  ConfigFile
class for handling persistent config options for the client
  Config
Functions [hide private]
 
getProxySetting()
returns proxy string in format hostname:port hostname is converted to Punycode (RFC3492) if needed
source code
 
convert_url_to_puny(url)
returns url where hostname is converted to Punycode (RFC3492)
source code
 
convert_url_from_puny(url)
returns url where hostname is converted from Punycode (RFC3492).
source code
 
getServerlURL()
return list of serverURL from config Note: in config may be one value or more values, but this function always return list
source code
 
setServerURL(serverURL)
Set serverURL in config
source code
 
setSSLCACert(sslCACert)
Set sslCACert in config
source code
 
initUp2dateConfig(cfg_file='/etc/sysconfig/rhn/up2date')
This function is the right way to get at the up2date config.
source code
Variables [hide private]
  t = gettext.translation('rhn-client-tools', fallback= True)
  Defaults = {'debug': ('Whether or not debugging is enabled', 0...
  FileOptions = ['systemIdPath', 'sslCACert', 'tmpDir']
  __package__ = 'up2date_client'
  cfg = config.initUp2dateConfig()
Function Details [hide private]

convert_url_from_puny(url)

source code 

returns url where hostname is converted from Punycode (RFC3492). Returns unicode string.


Variables Details [hide private]

Defaults

Value:
{'debug': ('Whether or not debugging is enabled', 0),
 'disallowConfChanges': ('Config options that can not be overwritten b\
y a config update action',
                         ['sslCACert',
                          'serverURL',
                          'disallowConfChanges',
                          'noReboot']),
 'enableProxy': ('Use a HTTP Proxy', 0),
...