def run(self, name, command, args='', proc=False, chroot=True, keeprunning=False): tname = 'trait-%s-%s' % (self._current_trait_, name) self.log.info('running %s' % tname) Installer.run(self, tname, command, args=args, proc=proc, chroot=chroot, keeprunning=keeprunning)
def __init__(self, conn, cfg): Installer.__init__(self, conn, cfg) self.profiletrait = ProfileTrait(self.conn) self.profile = None self.installer = None self.cfg = cfg self.log.info('profile installer initialized')
def __init__(self, conn, suite, cfg): Installer.__init__(self, conn, cfg=cfg) self.traitpackage = TraitPackage(conn, suite) self.traittemplate = TraitTemplate(conn, suite) self.traitscripts = TraitScript(conn, suite) self.profiledata = {} self.familydata = {}
def __init__(self, conn, cfg): os.environ['DEBIAN_FRONTEND'] = 'noninteractive' Installer.__init__(self, conn, cfg) self.profiletrait = ProfileTrait(self.conn) self.profile = None self.installer = None self.cfg = cfg self._profile = Profile(self.conn) self.log.info('profile installer initialized')
def __init__(self, conn, cfg): os.environ["DEBIAN_FRONTEND"] = "noninteractive" Installer.__init__(self, conn, cfg) self.profiletrait = ProfileTrait(self.conn) self.profile = None self.installer = None self.cfg = cfg self._profile = Profile(self.conn) self.log.info("profile installer initialized")
def __init__(self, conn): os.environ['DEBIAN_FRONTEND'] = 'noninteractive' Installer.__init__(self, conn) self.profiletrait = ProfileTrait(self.conn) self.profile = None self.installer = None self._profile = Profile(self.conn) if hasattr(self, 'log'): self.log.info('profile installer initialized') self.mtypedata = {}
def __init__(self, conn): os.environ['DEBIAN_FRONTEND'] = 'noninteractive' Installer.__init__(self, conn) self.profiletrait = ProfileTrait(self.conn) self.profile = None self.installer = None self._profile = Profile(self.conn) if hasattr(self, 'log'): self.log.info('profile installer initialized') else: self.set_logfile() self.log.info('profile installer initialized') self.mtypedata = {}
def __init__(self, conn, suite): Installer.__init__(self, conn) self.traitpackage = TraitPackage(conn, suite) self.traittemplate = TraitTemplate(conn, suite) self.traitscripts = TraitScript(conn, suite) self.profiledata = {} self.mtypedata = {} self.familydata = {} self.trait_processes = DEFAULT_PROCESSES if self.defenv.has_option('installer', 'trait_processes'): self.trait_processes = self.defenv.get_list('trait_processes', 'installer') self._process_map = { 'pre' : self._process_pre, 'remove' : self._process_remove, 'install' : self._process_install, 'templates' : self._process_templates, 'config' : self._process_config, 'chroot' : self._process_chroot, 'reconfig' : self._process_reconfig, 'post' : self._process_post }
def __init__(self, conn, suite): Installer.__init__(self, conn) self.traitpackage = TraitPackage(conn, suite) self.traittemplate = TraitTemplate(conn, suite) self.traitscripts = TraitScript(conn, suite) self.profiledata = {} self.mtypedata = {} self.familydata = {} self.trait_processes = DEFAULT_PROCESSES if self.defenv.has_option('installer', 'trait_processes'): self.trait_processes = self.defenv.get_list( 'trait_processes', 'installer') self._process_map = { 'pre': self._process_pre, 'remove': self._process_remove, 'install': self._process_install, 'templates': self._process_templates, 'config': self._process_config, 'chroot': self._process_chroot, 'reconfig': self._process_reconfig, 'post': self._process_post }
def set_logpath(self, logpath): Installer.set_logpath(self, logpath) if hasattr(self, "installer"): self.installer.set_logpath(logpath)
def set_target(self, target, update=False): Installer.set_target(self, target) self.installer.set_target(target) if update: os.system(self.command("apt-get update"))
def __init__(self, conn, suite, cfg): Installer.__init__(self, conn, cfg=cfg) self.traitpackage = TraitPackage(conn, suite) self.traittemplate = TraitTemplate(conn, suite) self.traitdebconf = TraitDebconf(conn, suite) self.traitscripts = TraitScript(conn, suite)
def set_logpath(self, logpath): Installer.set_logpath(self, logpath) if hasattr(self, 'installer'): self.installer.set_logpath(logpath)
def set_target(self, target, update=False): Installer.set_target(self, target) self.installer.set_target(target) if update: os.system(self.command('apt-get update'))
def run(self, name, command, args="", proc=False, chroot=True, keeprunning=False): tname = "trait-%s-%s" % (self._current_trait_, name) Installer.run(self, tname, command, args=args, proc=proc, chroot=chroot, keeprunning=keeprunning)