Пример #1
0
 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)
Пример #2
0
 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')
Пример #3
0
 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 = {}
Пример #4
0
 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')
Пример #5
0
 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')
Пример #6
0
 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")
Пример #7
0
 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 = {}
Пример #8
0
 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 = {}
Пример #9
0
 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
         }
Пример #10
0
    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
        }
Пример #11
0
 def set_logpath(self, logpath):
     Installer.set_logpath(self, logpath)
     if hasattr(self, "installer"):
         self.installer.set_logpath(logpath)
Пример #12
0
 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"))
Пример #13
0
 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)
Пример #14
0
 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)
Пример #15
0
 def set_logpath(self, logpath):
     Installer.set_logpath(self, logpath)
     if hasattr(self, 'installer'):
         self.installer.set_logpath(logpath)
Пример #16
0
 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'))
Пример #17
0
 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)