cmd_args.append('env_jesus04') cmd_args.append('bluep_jesus04') cmd_args.append('tier16') cmd_args.append('mysql=1.2.4') config = {} execfile("sdc.conf", config) env_request = EnvironmentRequest(config['keystone_url'], config['paasmanager_url'], config['tenant'], config['user'], config['password'], config['vdc'], config['image'], config['sdc_url']) instance_request = EnvironmentInstanceRequest( config['keystone_url'], config['paasmanager_url'], config['tenant'], config['user'], config['password'], config['vdc'], config['sdc_url']) environment_name = cmd_args[1] print environment_name blueprint_name = cmd_args[2] tier_name = cmd_args[3] product_name = cmd_args[4] print('Create a blueprint Template : ' + environment_name) env_request.add_environment(environment_name, 'description') print(" OK") print('Create tier: ' + tier_name + " with products " + product_name) env_request.add_tier_environment(environment_name, tier_name, product_name) print(" OK")