Exemple #1
0
 def __init__(self):
     self.config_provider = config_provider.getProvider()
     logging.debug('got config provider: %s', self.config_provider)
     self.os_installer = os_installer.getInstaller()
     logging.debug('got os installer: %s', self.os_installer)
     self.package_installer = package_installer.getInstaller()
     logging.debug('got package installer: %s', self.package_installer)
Exemple #2
0
 def __init__(self):
     self.config_provider = config_provider.getProvider()
     logging.debug('got config provider: %s', self.config_provider)
     self.os_installer = os_installer.getInstaller()
     logging.debug('got os installer: %s', self.os_installer)
     self.package_installer = package_installer.getInstaller()
     logging.debug('got package installer: %s', self.package_installer)
Exemple #3
0
    def __init__(self):
        # the connection is created when cobbler installer is initialized.
        try:
            self.remote = xmlrpclib.Server(setting.COBBLER_INSTALLER_URL,
                                           allow_none=True)
            self.token = self.remote.login(*setting.COBBLER_INSTALLER_TOKEN)
        except Exception as error:
            logging.error('failed to login %s with (user, password) %s',
                          setting.COBBLER_INSTALLER_URL,
                          setting.COBBLER_INSTALLER_TOKEN)
            logging.exception(error)
            raise error

        # cobbler tries to get package related config from package installer.
        self.package_installer = package_installer.getInstaller()
        logging.debug('%s instance created: %s', self.NAME, self)
Exemple #4
0
    def __init__(self):
        # the connection is created when cobbler installer is initialized.
        try:
            self.remote = xmlrpclib.Server(
                setting.COBBLER_INSTALLER_URL,
                allow_none=True)
            self.token = self.remote.login(
                *setting.COBBLER_INSTALLER_TOKEN)
        except Exception as error:
            logging.error('failed to login %s with (user, password) %s',
                          setting.COBBLER_INSTALLER_URL,
                          setting.COBBLER_INSTALLER_TOKEN)
            logging.exception(error)
            raise error

        # cobbler tries to get package related config from package installer.
        self.package_installer = package_installer.getInstaller()
        logging.debug('%s instance created: %s', self.NAME, self)