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
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)
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)
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)
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)
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