# # For those usages not covered by the Apache version 2.0 License please # contact with [email protected] ''' Created on 16/04/2013 @author: henar ''' from tools.enviornmentrequest import EnvironmentRequest 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']) # And an abstract environment has already been created with data: # | name | description | # | nameqa | descqa | environment_name = 'henarprueddsba44w' tier_name = 'nameqa' print('Create a bluepint Template: ') g.add_abstract_environment(environment_name, 'description') print(" OK") tier_name2 = 'tiernameqa5'
# Get the arguments list #cmd_args = sys.argv cmd_args = [] cmd_args.append('hola') 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')
# contact with [email protected] ''' Created on 16/04/2013 @author: henar ''' from tools.enviornmentrequest import EnvironmentRequest 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']) # And an abstract environment has already been created with data: # | name | description | # | nameqa | descqa | environment_name = 'henarprueddsba44w' tier_name = 'nameqa'
# Get the arguments list #cmd_args = sys.argv 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")
''' Created on 16/04/2013 @author: henar ''' 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")
vm_fqn = 'fqn9' vm_ip = '130.206.80.114' product_name = 'test' product_version = '0.1' 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")
''' Created on 16/04/2013 @author: henar ''' from tools.enviornmentrequest import EnvironmentRequest from tools.environment_instance import EnvironmentInstance from tools.enviornment_instance_request import EnvironmentInstanceRequest 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 = 'dadddssssssssssdsssjdfdd' blueprintname = "aasdfddasjssssssssdsdssdf" network = "aadssssdddddd" print('Create a template for network: ') g.add_environment(environment_name, 'description') print(" OK")
# # For those usages not covered by the Apache version 2.0 License please # contact with [email protected] ''' Created on 16/04/2013 @author: henar ''' from tools.enviornmentrequest import EnvironmentRequest config = {} 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: ')
@author: henar """ from tools.enviornmentrequest import EnvironmentRequest from tools.environment_instance import EnvironmentInstance from tools.enviornment_instance_request import EnvironmentInstanceRequest 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"], )
# contact with [email protected] ''' Created on 16/04/2013 @author: henar ''' from tools.enviornmentrequest import EnvironmentRequest config = {} 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: ')
''' Created on 16/04/2013 @author: henar ''' from tools.enviornmentrequest import EnvironmentRequest from tools.environment_instance import EnvironmentInstance from tools.enviornment_instance_request import EnvironmentInstanceRequest 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 = "orion3" bluename = "blueorion3" print('Create a blueprint Template No tiers for contextbroker: ') g.add_environment(environment_name, 'description') print(" OK") print('Create createTier: tiermongoconfig')