示例#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')))
示例#2
0
文件: client.py 项目: desdrury/k8sdc
 def run(self):
   call_ansible(os.path.realpath(os.path.join(os.path.curdir, 'playbooks/client.yaml')))
示例#3
0
 def run(self):
   call_ansible(os.path.realpath(os.path.join(os.path.curdir, 'site.yaml')))
示例#4
0
文件: sol.py 项目: desdrury/k8sdc
  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 )
示例#5
0
文件: helm.py 项目: desdrury/k8sdc
 def run(self):
     call_ansible(os.path.realpath(os.path.join(os.path.curdir, "playbooks/helm.yaml")))