Example #1
0
  def create_machines(self):
    """Create Droplets"""
    logger.info("Creating machines")

    result = execute("pip freeze", output=False)
    dopy_found = False
    for item in result:
      if item.startswith("dopy"):
        dopy_found = True
    if not dopy_found:
      logger.error("Unable to find Python module \'dopy\'")
      sys.exit(1)    

    call_ansible(os.path.realpath(os.path.join(os.path.curdir, 'playbooks/machine.yaml')))
Example #2
0
 def run(self):
   call_ansible(os.path.realpath(os.path.join(os.path.curdir, 'playbooks/client.yaml')))
Example #3
0
 def run(self):
   call_ansible(os.path.realpath(os.path.join(os.path.curdir, 'site.yaml')))
Example #4
0
  def run(self):
    if self.tag is not None:
      self.tag = [self.tag]

    call_ansible(os.path.realpath(os.path.join(os.path.curdir, 'playbooks/sol.yaml')), 
                 tag = self.tag )
Example #5
0
 def run(self):
     call_ansible(os.path.realpath(os.path.join(os.path.curdir, "playbooks/helm.yaml")))