Bug 9479 - provide option for built in https

small fix on cloud-setup-managment
This commit is contained in:
frank 2011-09-01 17:09:06 -07:00
parent 4dab93761b
commit c7b3c81485
2 changed files with 8 additions and 3 deletions

View File

@ -13,9 +13,9 @@ if __name__ == '__main__':
parser.add_option("--https", action="store_true", dest="https", help="Enable HTTPs connection of management server")
(options, args) = parser.parse_args()
if options.https:
glbEnv.mode = "HttpsServer"
else:
glbEnv.mode = "Server"
glbEnv.svrMode = "HttpsServer"
glbEnv.mode = "Server"
print "Starting to configure CloudStack Management Server:"
syscfg = sysConfigFactory.getSysConfigFactory(glbEnv)

View File

@ -7,6 +7,8 @@ class sysConfigFactory:
return sysConfigAgentFactory.getAgent(glbEnv)
elif glbEnv.mode == "Server":
return sysConfigServerFactory.getServer(glbEnv)
elif glbEnv.mode == "HttpsServer":
return sysConfigServerFactory.getServer(glbEnv)
elif glbEnv.mode == "Db":
return sysConfigDbFactory.getDb(glbEnv)
else:
@ -69,6 +71,9 @@ class sysConfig(object):
return True
class sysConfigAgent(sysConfig):
def __init__(self, env):
super(sysConfigServer, self).__init__(env)
def check(self):
if self.env.debug:
return True