示例#1
0
def GetSplunk(datacenter):
    TemplateClass = roleTemplate.Template()
    data = TemplateClass.Splunk(datacenter)
    return data
示例#2
0
def getTypeID(Role):
    TemplateClass = roleTemplate.Template()
    data = TemplateClass.TYPE_ID(Role)
    return data
示例#3
0
def getUUID(vmName, vmIP, uuid, os, Role, Environment, ClusterName):
    TemplateClass = roleTemplate.Template()
    data = TemplateClass.UUID(vmName, vmIP, uuid, os, Role, Environment,
                              ClusterName)
    return data
示例#4
0
def getTireID(Environment):
    TemplateClass = roleTemplate.Template()
    data = TemplateClass.VM_TIER(Environment)
    return data
示例#5
0
def getPassword(source):
    TemplateClass = roleTemplate.Template()
    data = TemplateClass.getpassword(source)
    return data
示例#6
0
def gateway(networkname):
    TemplateClass = roleTemplate.Template()
    data = TemplateClass.defaultGateway(networkname)
    return data
示例#7
0
def getDomain(datacenter):
    TemplateClass = roleTemplate.Template()
    data = TemplateClass.getDNS(datacenter)
    return data
示例#8
0
def getMemory(version, role):
    TemplateClass = roleTemplate.Template()
    data = TemplateClass.getCPU_COUNT(version, role)
    return data