Ejemplo n.º 1
0
 def populate(self, parameters):
     self.internal_pipeline = Pipeline(parent=self,
                                       job=self.job,
                                       parameters=parameters)
     self.logger.debug("[SEOJI] deploy/lxc.py parameters: " +
                       str(parameters))
     self.logger.debug("[SEOJI] deploy/lxc.py parameters['nexell_ext]: " +
                       str(parameters['nexell_ext']))
     if parameters['nexell_ext']:
         self.internal_pipeline.add_action(NexellCreateAction())
         self.internal_pipeline.add_action(OverlayAction())
         #self.internal_pipeline.add_action(ApplyNexellLxcOverlay)
         self.internal_pipeline.add_action(
             ApplyNexellLxcOverlay(parameters['nexell_ext']))
     else:
         self.internal_pipeline.add_action(LxcCreateAction())
         self.internal_pipeline.add_action(LxcCreateUdevRuleAction())
         if 'packages' in parameters:
             self.internal_pipeline.add_action(LxcStartAction())
             self.internal_pipeline.add_action(LxcAptUpdateAction())
             self.internal_pipeline.add_action(LxcAptInstallAction())
             self.internal_pipeline.add_action(LxcStopAction())
         if self.test_needs_deployment(parameters):
             self.internal_pipeline.add_action(DeployDeviceEnvironment())
         if self.test_needs_overlay(parameters):
             self.internal_pipeline.add_action(OverlayAction())
             self.internal_pipeline.add_action(ApplyLxcOverlay())
     '''
Ejemplo n.º 2
0
 def populate(self, parameters):
     self.internal_pipeline = Pipeline(parent=self, job=self.job,
                                       parameters=parameters)
     self.internal_pipeline.add_action(LxcCreateAction())
     self.internal_pipeline.add_action(LxcCreateUdevRuleAction())
     if 'packages' in parameters:
         self.internal_pipeline.add_action(LxcStartAction())
         self.internal_pipeline.add_action(LxcAptUpdateAction())
         self.internal_pipeline.add_action(LxcAptInstallAction())
         self.internal_pipeline.add_action(LxcStopAction())
     if self.test_needs_deployment(parameters):
         self.internal_pipeline.add_action(DeployDeviceEnvironment())
     if self.test_needs_overlay(parameters):
         self.internal_pipeline.add_action(OverlayAction())
         self.internal_pipeline.add_action(ApplyLxcOverlay())