Package pulp :: Package server :: Module config
[hide private]
[frames] | no frames]

Module config

source code

Functions [hide private]
 
check_config_files()
Check for read permissions on the configuration files.
source code
 
load_configuration()
Check the configuration files and load the global 'config' object from them.
source code
 
add_config_file(file_path)
Convenience function to add a new file to the list of configuration files, then re-load the global config and re-configure logging.
source code
 
remove_config_file(file_path)
Convenience function to remove a file from the list of configuration files, then re-load the global config and re-configure logging.
source code
Variables [hide private]
  config = None
  _default_values = {'logs': {'level': 'info', 'max_size': '1048...
  _config_files = ['/etc/pulp/pulp.conf']
Function Details [hide private]

check_config_files()

source code 

Check for read permissions on the configuration files. Raise a runtime error if the file doesn't exist or the read permissions are lacking.

add_config_file(file_path)

source code 

Convenience function to add a new file to the list of configuration files, then re-load the global config and re-configure logging.

Parameters:
  • file_path (str) - full path to the new file to add

remove_config_file(file_path)

source code 

Convenience function to remove a file from the list of configuration files, then re-load the global config and re-configure logging.

Parameters:
  • file_path (str) - full path to the file to remove

Variables Details [hide private]

_default_values

Value:
{'logs': {'level': 'info', 'max_size': '1048576', 'backups': '4', 'pul\
p_file': '/var/log/pulp/pulp.log', 'grinder_file': '/var/log/pulp/grin\
der.log',}, 'auditing': {'events_file': '/var/log/pulp/events.log', 'l\
ifetime': '90', 'backups': '4',}, 'security': {'cacert': '/etc/pki/pul\
p/ca.crt', 'cakey': '/etc/pki/pulp/ca.key',},}