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


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

--

Legend:

Unmodified
Added
Removed
Modified
  • DRM4G/ResourceConfiguration/EGIFedCloud

    v2 v3  
    1717I don't think that should be a problem
    1818}}}
     19
     20== Configuration format ==
     21
    1922 * It's a JSON file, so it's syntax includes the following:
    2023  * Data is represented in name/value pairs.
     
    4649
    4750
    48 There are a couple of configuration keys in "''resources.conf''" that reference values found in this JSON.
     51== Cloud configuration keys ==
     52
     53 * `fedcloud`: Indicates the name of the ''Virtual Organization'' (VO) being used. In the future more may be added.
     54  * `vo`: it's used for authorization, to get the proxy certificate
     55   * `fedcloud.egi.eu`: shouldn't be changed for !FedCloud sites
     56  * `clouds`: it will usually contain a list of sites with the VM configurations.
     57   * `<site_name>`: name that represents the site where your VM will be hosted
     58    * `endpoint`: end of a communication channel, URL of their server
     59    * `apps`: list of system images
     60     * `<system_image_name>`: OCCI ID that represents the system image you'll be using
     61    * `flavours`: list of template IDs
     62     * `<hardware_template>`: template ID that defines hardware specifications, sizes for RAM, disk and number of CPU cores
     63
     64
     65
     66=== How to link the resource configuration file and the cloud setup file ===
     67
     68There are a couple of configuration keys in "'''''resources.conf'''''" that reference values found in this JSON.
     69
     70* 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.
     71 * It is done with the "'''''cloud'''''", "'''''virtual_image'''''" and "'''''flavour'''''" keys from the resource configuration file respectively.
     72
     73* You can modify the name (not the value) of the "'''''<site_name>'''''", "'''''<system_image_name>'''''" and "'''''<hardware_template>'''''", so be sure to write the same value on the resource configuration file as the name on the cloud setup file.
     74  * The value in "''resources.conf''" has to match with the name in "cloudsetup.josn"
     75   {{{
     76   [CESNET_Metacloud]
     77   cloud             = EGI FedCloud - CESNET-METACLOUD
     78   flavour           = Small
     79   virtual_image     = Ubuntu-14.04
     80   }}}
     81   {{{
     82   "clouds" : {
     83       "EGI FedCloud - CESNET-METACLOUD" : {
     84           "endpoint" : "https://carach5.ics.muni.cz:11443",
     85           "apps" : {
     86               "Ubuntu-14.04" : "http://occi.carach5.ics.muni.cz/occi/infrastructure/os_tpl#uuid_egi_ubuntu_server_14_04_lts_fedcloud_warg_131"
     87            },
     88           "flavours" : {   
     89               "Small"  : "http://fedcloud.egi.eu/occi/compute/flavour/1.0#small",
     90               "Medium" : "http://fedcloud.egi.eu/occi/compute/flavour/1.0#medium"
     91           }
     92       }
     93   }
     94   }}}
     95
    4996
    5097