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') print('Delete an environment Instance: ' + blueprint_name ) instance_request.delete_blueprint_instance(blueprint_name)
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') print('Delete an environment Instance: ' + blueprint_name) instance_request.delete_blueprint_instance(blueprint_name)
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') print('Deploy an application Instance' + application )
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') print tostring(blueprint_instance.to_xml()) instance_request.add_blueprint_instance(blueprint_instance) print('OK') print('Delete an environment Instance' + blueprintname)
execfile("sdc.conf", config) g = EnvironmentRequest(config['keystone_url'], config['paasmanager_url'], config['tenant'], config['user'], config['password'], config['vdc'], config['sdc_url']) environment_name = 'enviornmentname3' tier_name = 'tiername2' print('Create a blueprint Template No tiers: ') g.add_environment(environment_name, 'description') print(" OK") print('Create createTier No product: ') g.add_tier_environment(environment_name, tier_name, None) print(" OK") print('Create productReelaseDto test: ') g.add_product_to_tier(environment_name, tier_name, "test=0.1") print(" OK") print('Create productReelaseDto tomcat: ') g.add_product_to_tier(environment_name, tier_name, "tomcat=6") print(" OK") print('Deleting tier: ') g.delete_tier(environment_name, tier_name) print(" OK") print('Deleting environment: ')
execfile("sdc.conf", config) g = EnvironmentRequest(config['keystone_url'], config['paasmanager_url'], config['tenant'], config['user'], config['password'], config['vdc'], config['sdc_url']) environment_name = 'enviornmentname3' tier_name = 'tiername2' print('Create a blueprint Template No tiers: ') g.add_environment(environment_name, 'description') print(" OK") print('Create createTier No product: ') g.add_tier_environment(environment_name, tier_name, None) print(" OK") print('Create productReelaseDto test: ') g.add_product_to_tier(environment_name, tier_name, "test=0.1") print(" OK") print('Create productReelaseDto tomcat: ') g.add_product_to_tier(environment_name, tier_name, "tomcat=6") print(" OK") print('Deleting tier: ') g.delete_tier(environment_name, tier_name) print(" OK") print('Deleting environment: ')
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 = "orion3" bluename = "blueorion3" print('Create a blueprint Template No tiers for contextbroker: ') g.add_environment(environment_name, 'description') print(" OK") print('Create createTier: tiermongoconfig') g.add_tier_environment(environment_name, "tierconfig", "mongodbconfig=2.2.3") print(" OK") print('Create createTier: tiermongoshard') g.add_tier_environment(environment_name, "tiersha58", "mongodbshard=2.2.3") print(" OK") print('Create createTier: tiercontextbroker') g.add_tier_environment(environment_name, "tierzcontbrok", "mongos=2.2.3;contextbroker=1.0.0") print(" OK") print('Get Information about the Blueprint: ' + environment_name ) env = g.get_environment(environment_name) env.to_string() print(" OK")