Exemplo n.º 1
0
 def __init__(self, config_name):
     self.access_key = read_config(config_name, "access_key")
     self.secret_key = read_config(config_name, "secret_key")
     self.region = read_config(config_name, "region")
     self.image_id = read_config(config_name, "image_id")
     self.flavor_id = read_config(config_name, "flavor_id")
     self.key_name = read_config(config_name, "key_name")
     self.security_group = read_config(config_name, "security_group")
     self.subnet_id = read_config(config_name, "subnet_id")
     self.custom_image_id = read_config(config_name, "custom_image_id")
Exemplo n.º 2
0
    def __init__(self,config_name):
        self.access_key = read_config(config_name,"access_key")
        self.secret_key = read_config(config_name,"secret_key")
        self.region = read_config(config_name,"region")
        self.image_id = read_config(config_name,"image_id")
        self.flavor_id = read_config(config_name,"flavor_id")
        self.key_name = read_config(config_name,"key_name")
        self.security_group = read_config(config_name,"security_group")
        self.subnet_id = read_config(config_name,"subnet_id")
        self.custom_image_id = read_config(config_name,"custom_image_id")


       
        
Exemplo n.º 3
0
 def __init__(self):
     # Getting EC2 credentials
     print "Into WebsiteSanity class init"
     self.ec2_cfg = ec2_config.EC2Config(aws_section)
     self.ec2_conn = plivo_utils.get_ec2_connection()
     
     # Getting the key file
     self.private_key_file = os.path.join(os.path.abspath("../"),"data","key_file.pem")
     
     # Getting server IP's
     self.web_srvr_ip = plivo_utils.read_config(website_section, "WEB_SRVR_IP")
     self.app_srvr_ip = plivo_utils.read_config(website_section, "APP_SRVR_IP")
     self.dbase_srvr_ip = plivo_utils.read_config(website_section, "DBASE_SRVR_IP")
     
     #Getting server ID's
     self.web_srvr_id = plivo_utils.read_config(website_section, "WEB_SRVR_ID")
     self.app_srvr_id = plivo_utils.read_config(website_section, "APP_SRVR_ID")
     self.dbase_srvr_id = plivo_utils.read_config(website_section, "DBASE_SRVR_ID")
     print "Out of WebsiteSanity init"
Exemplo n.º 4
0
 def __init__(self,config_name):
     self.access_key = read_config(config_name,"access_key")
     self.secret_key = read_config(config_name,"secret_key")
     self.region = read_config(config_name,"region")