def __init__(self, config_manager):
        super(CobblerInstaller, self).__init__()

        self.config_manager = config_manager
        installer_settings = self.config_manager.get_os_installer_settings()
        try:
            username = installer_settings[self.CREDENTIALS][self.USERNAME]
            password = installer_settings[self.CREDENTIALS][self.PASSWORD]
            cobbler_url = installer_settings[self.INSTALLER_URL]
            self.tmpl_dir = CobblerInstaller.get_tmpl_path()

        except __HOLE__ as ex:
            raise KeyError(ex.message)

        # The connection is created when cobbler installer is initialized.
        self.remote = self._get_cobbler_server(cobbler_url)
        self.token = self._get_token(username, password)
        self.pk_installer_config = None

        logging.debug('%s instance created', 'CobblerInstaller')
dataset/ETHPy150Open openstack/compass-core/compass/deployment/installers/os_installers/cobbler/cobbler.py/CobblerInstaller.__init__