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") print('Get Information about the template: ' + environment_name) env = env_request.get_environment(environment_name) env.to_string() print(" OK") print('Deploy an environment Instance: ' + blueprint_name) blueprint_instance = EnvironmentInstance(blueprint_name, 'description', env, 'INIT') instance_request.add_blueprint_instance(blueprint_instance)
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") print('Get Information about the template: ' + environment_name ) env = env_request.get_environment(environment_name) env.to_string() print(" OK") print('Deploy an environment Instance: ' + blueprint_name ) blueprint_instance = EnvironmentInstance(blueprint_name, 'description', env, 'INIT') instance_request.add_blueprint_instance(blueprint_instance) print ('OK')
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) env = g.get_environment(environment_name) env.to_xml() print(" OK") print('Deploy an environment Instance' + blueprintname) blueprint_instance = EnvironmentInstance(blueprintname, 'description', env, 'INIT')
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") print(" OK") env = g.get_environment(environment_name) print('Deploy an environment Instance' + blueprintname ) blueprint_instance = EnvironmentInstance(blueprintname, 'description', env, 'INIT') instance_request.add_blueprint_instance(blueprint_instance) print ('OK')
instance_request = EnvironmentInstanceRequest( config["keystone_url"], config["paasmanager_url"], config["tenant"], config["user"], config["password"], config["vdc"], config["sdc_url"], ) environment_name = "diasss4" blueprintname = "diass4" network = "diass4" print("Create a template for network: ") g.add_environment(environment_name, "description") print(" OK") print("Create template: node") tier_name = "tiername45" g.add_tier_environment_network(environment_name, tier_name, "tomcat=6", network) print(" OK") print("Get Information about the Blueprint: " + environment_name) env = g.get_environment(environment_name) env.to_string() print(" OK") print("Deploy an environment Instance" + blueprintname) blueprint_instance = EnvironmentInstance(blueprintname, "description", env, "INIT") instance_request.add_blueprint_instance(blueprint_instance)