Esempio n. 1
0
 def getServer(glbEnv):
     glbEnv.distribution = Distribution()
     distribution = glbEnv.distribution.getVersion()
     if distribution == "Ubuntu":
         return sysConfigServerUbuntu(glbEnv)
     elif distribution != "Unknown":
         return sysConfigServerRedhat(glbEnv)
     else:
         print "Can't find the distribution version"
         return sysConfig()
Esempio n. 2
0
 def getAgent(glbEnv):
     glbEnv.distribution = Distribution()
     distribution = glbEnv.distribution.getVersion()
     if distribution == "Ubuntu":
         return sysConfigAgentUbuntu(glbEnv)
     elif distribution == "Fedora" or distribution == "RHEL6":
         return sysConfigRedhat6(glbEnv)
     elif distribution == "CentOS" or distribution == "RHEL5":
         return sysConfigRedhat5(glbEnv)
     else:
         print "Can't find the distribution version"
         return sysConfig()