Esempio n. 1
0
 def __init__(self, *args, **kwargs):
     BaseMaster.__init__(self, *args, **kwargs)
     if 'instance' in self.master_config:
         self.instance = ProxyInstance(self, self.id, self.master_config,
                                       self.master_config['instance'])
         self.instance.sectiongroupname = 'vb-master'
         self.instances[self.id] = self.instance
Esempio n. 2
0
 def __init__(self, *args, **kwargs):
     BaseMaster.__init__(self, *args, **kwargs)
     self.debug = self.master_config.get("debug-commands", False)
     if "instance" not in self.master_config:
         instance = PlainInstance(self, self.id, self.master_config)
     else:
         instance = self.master_config["instance"]
     if instance:
         self.instance = EzjailProxyInstance(self, self.id, self.master_config, instance)
         self.instance.sectiongroupname = "ez-master"
         self.instances[self.id] = self.instance
     else:
         self.instance = None
     prefix_args = ()
     if self.master_config.get("sudo"):
         prefix_args = ("sudo",)
     if self._exec is None:
         self._exec = Executor(instance=self.instance, prefix_args=prefix_args)
Esempio n. 3
0
 def __init__(self, *args, **kwargs):
     BaseMaster.__init__(self, *args, **kwargs)
     self.debug = self.master_config.get('debug-commands', False)
     if 'instance' not in self.master_config:
         instance = PlainInstance(self, self.id, self.master_config)
     else:
         instance = self.master_config['instance']
     if instance:
         self.instance = EzjailProxyInstance(self, self.id, self.master_config, instance)
         self.instance.sectiongroupname = 'ez-master'
         self.instances[self.id] = self.instance
     else:
         self.instance = None
     prefix_args = ()
     if self.master_config.get('sudo'):
         prefix_args = ('sudo',)
     if self._exec is None:
         self._exec = Executor(
             instance=self.instance, prefix_args=prefix_args)
Esempio n. 4
0
 def __init__(self, *args, **kwargs):
     BaseMaster.__init__(self, *args, **kwargs)
     self.debug = self.master_config.get('debug-commands', False)
     if 'instance' not in self.master_config:
         instance = PlainInstance(self, self.id, self.master_config)
     else:
         instance = self.master_config['instance']
     if instance:
         self.instance = IocageProxyInstance(self, self.id,
                                             self.master_config, instance)
         self.instance.sectiongroupname = 'ioc-master'
         self.instances[self.id] = self.instance
     else:
         self.instance = None
     prefix_args = ()
     if self.master_config.get('sudo'):
         prefix_args = ('sudo', )
     if self._exec is None:
         self._exec = Executor(instance=self.instance,
                               prefix_args=prefix_args)
Esempio n. 5
0
 def __init__(self, *args, **kwargs):
     BaseMaster.__init__(self, *args, **kwargs)
     self.instance = PlainInstance(self, self.id, self.master_config)
     self.instance.sectiongroupname = 'vz-master'
     self.instances[self.id] = self.instance
     self.debug = self.master_config.get('debug-commands', False)
Esempio n. 6
0
 def __init__(self, *args, **kwargs):
     BaseMaster.__init__(self, *args, **kwargs)
     if 'instance' in self.master_config:
         self.instance = ProxyInstance(self, self.id, self.master_config, self.master_config['instance'])
         self.instance.sectiongroupname = 'vb-master'
         self.instances[self.id] = self.instance
Esempio n. 7
0
 def __init__(self, *args, **kwargs):
     BaseMaster.__init__(self, *args, **kwargs)
     self.instance = PlainInstance(self, self.id, self.master_config)
     self.instance.sectiongroupname = 'vz-master'
     self.instances[self.id] = self.instance
     self.debug = self.master_config.get('debug-commands', False)
Esempio n. 8
0
 def __init__(self, *args, **kwargs):
     BaseMaster.__init__(self, *args, **kwargs)
     self.instance = MasterConnection(self, self.id, self.master_config)
     self.instance.sectiongroupname = 'ez-master'
     self.instances[self.id] = self.instance
Esempio n. 9
0
 def __init__(self, *args, **kwargs):
     BaseMaster.__init__(self, *args, **kwargs)
     self.instance = MasterConnection(self, self.id, self.master_config)
     self.instance.sectiongroupname = 'ez-master'
     self.instances[self.id] = self.instance