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")
vdc = 'test3' org = 'FIWARE' environment_name = 'environment_name3' application_name = 'application_name6' application_version = '1.0' artifact_name = 'dd' config = {} execfile("sdc.conf", config) g = 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 = 'git65' blueprintname = 's95' application = 'app95' print('Create a blueprint Template tomcat/mysql: ') g.add_environment(environment_name, 'description') tier_name = 'tomcat5' g.add_tier_environment(environment_name, tier_name, "tomcat=6") #g.add_tier_environment_network(environment_name, tier_name, "tomcat=6", "network4") print(" OK") tier_name = 'mysql' #g.add_tier_environment(environment_name,tier_name, "mysql=1.2.4")
cmd_args = [] cmd_args.append('hola') cmd_args.append('envjesus50') cmd_args.append('bluepjesus50') cmd_args.append('tiertest') 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")
from tools.enviornmentrequest import EnvironmentRequest from tools.environment_instance import EnvironmentInstance from tools.enviornment_instance_request import EnvironmentInstanceRequest from xml.etree.ElementTree import tostring config = {} execfile("sdc.conf", config) g = 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 = 'dddsdd' blueprintname = 'dddsdd' print('Create a blueprint Template No tiers for nodemysql: ') g.add_environment(environment_name, 'description') print(" OK") print('Create createTierNoProduct: node') tier_name = 'nodejsjust66' g.add_tier_environment(environment_name, tier_name, "tomcat=6") print(" OK") print('Get Information about the Blueprint: ' + environment_name )