# Changes between Version 2 and Version 3 of DRM4G/ResourceConfiguration/EGIFedCloud

Ignore:
Timestamp:
Dec 1, 2016 6:36:23 PM (5 years ago)
Comment:

--

### Legend:

Unmodified
 v2 I don't think that should be a problem }}} == Configuration format == * It's a JSON file, so it's syntax includes the following: * Data is represented in name/value pairs. There are a couple of configuration keys in "''resources.conf''" that reference values found in this JSON. == Cloud configuration keys == * fedcloud: Indicates the name of the ''Virtual Organization'' (VO) being used. In the future more may be added. * vo: it's used for authorization, to get the proxy certificate * fedcloud.egi.eu: shouldn't be changed for !FedCloud sites * clouds: it will usually contain a list of sites with the VM configurations. * : name that represents the site where your VM will be hosted * endpoint: end of a communication channel, URL of their server * apps: list of system images * : OCCI ID that represents the system image you'll be using * flavours: list of template IDs * : template ID that defines hardware specifications, sizes for RAM, disk and number of CPU cores === How to link the resource configuration file and the cloud setup file === There are a couple of configuration keys in "'''''resources.conf'''''" that reference values found in this JSON. * From the resource configuration file "''resources.conf''" you have to indicate which "'''''cloud'''''", "'''''app'''''" and "'''''flavour'''''" you want to use from all of the ones you have defined in the cloud setup file. * It is done with the "'''''cloud'''''", "'''''virtual_image'''''" and "'''''flavour'''''" keys from the resource configuration file respectively. * You can modify the name (not the value) of the "''''''''''", "''''''''''" and "''''''''''", so be sure to write the same value on the resource configuration file as the name on the cloud setup file. * The value in "''resources.conf''" has to match with the name in "cloudsetup.josn" {{{ [CESNET_Metacloud] cloud             = EGI FedCloud - CESNET-METACLOUD flavour           = Small virtual_image     = Ubuntu-14.04 }}} {{{ "clouds" : { "EGI FedCloud - CESNET-METACLOUD" : { "endpoint" : "https://carach5.ics.muni.cz:11443", "apps" : { "Ubuntu-14.04" : "http://occi.carach5.ics.muni.cz/occi/infrastructure/os_tpl#uuid_egi_ubuntu_server_14_04_lts_fedcloud_warg_131" }, "flavours" : { "Small"  : "http://fedcloud.egi.eu/occi/compute/flavour/1.0#small", "Medium" : "http://fedcloud.egi.eu/occi/compute/flavour/1.0#medium" } } } }}}