'Reads the settings from the cobbler.ini file'

def read_settings(self):

    config = ConfigParser.SafeConfigParser()
    config.read((os.path.dirname(os.path.realpath(__file__)) + '/cobbler.ini'))
    self.cobbler_host = config.get('cobbler', 'host')
    self.cobbler_username = None
    self.cobbler_password = None
    if config.has_option('cobbler', 'username'):
        self.cobbler_username = config.get('cobbler', 'username')
    if config.has_option('cobbler', 'password'):
        self.cobbler_password = config.get('cobbler', 'password')
    cache_path = config.get('cobbler', 'cache_path')
    self.cache_path_cache = (cache_path + '/ansible-cobbler.cache')
    self.cache_path_inventory = (cache_path + '/ansible-cobbler.index')
    self.cache_max_age = config.getint('cobbler', 'cache_max_age')
