Changes between Version 7 and Version 8 of Doc/gLite/TemplateCustomization


Ignore:
Timestamp:
Dec 4, 2006, 10:33:01 AM (19 years ago)
Author:
/C=FR/O=CNRS/OU=UMR8607/CN=Michel Jouvin/emailAddress=jouvin@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/gLite/TemplateCustomization

    v7 v8  
    44[[TOC(inline)]]
    55
    6 Despite the change in template layout, LCG2 [wiki:Doc/LCG2/TemplateLayout template customization] is still valid for gLite3. Refer to this description, except for components with an explicit description provided here.
     6Site customization to QWGtemplates is done through a small set of templates used to define variables used as input by QWG templates. This doesn't cover OS basic configurationt that is decribed in the page about [wiki:Doc/TemplateCustom template framework].
     7
     8All site parameters related to QWG middleware are supposed to be declared in template {{{pro_lcg2_config_site.tpl}}}. A sensible default value is provided for all required variables in template source:template/trunk/grid/glite-3.0.0/defaults/site.tpl provided as part of QWG templates. This template must be included as part of the site {{{pro_lcg2_config_site.tpl}}} that must provide an explicit value for at least all the variable {{{undef}}} in template source:template/trunk/grid/glite-3.0.0/defaults/site.tpl.
     9
     10To ease transition from LCG2 to gLite3, the template defining default parameters can still be accessed as  source:template/trunk/grid/lcg-2.7.0/sources/pro_lcg2_config_system_defaults.tpl.
     11
     12
     13=== Machine types ===
     14
     15QWG templates provide a template per machine type (CE, SE, RB, ...). They are located in {{{machine-types}}} directory and are intended to be generic templates. No modification should be needed.
     16
     17To configure a specific machine with gLite middleware, you just need to include the appropriate machine type template into the machine profile, after specifying a template containing the specific configuration for this particular machine with the variable {{{xxx_CONFIG_SITE}}} (look in the template for the exact name of the variable).
     18
     19Here an example for configuring a Torque based CE :
     20
     21{{{
     22object template profile_grid10;
     23
     24# Define specific configuration for a GRIF CE to be added to
     25# standard configuration
     26variable CE_TORQUE_CONFIG_SITE = "pro_ce_torque_grif";
     27
     28# Configure as a CE (Torque) + Site's BDII
     29include pro_ce_torque;
     30
     31#
     32# software repositories (should be last)
     33#
     34include repository_common;
     35}}}
     36
     37In this example, {{{CE_TORQUE_CONFIG_SITE}}} specify the name of a template defining the Torque configuration.
     38
     39All the machine types share a common basic configuration, described in template `machine-types/base.tpl`. This template allows to add site specific configuration to this common basic configuration (e.g. configuration of a monitoring agent). This is done by defining variable {{{GLITE_BASE_CONFIG_SITE}}} to a template containing the site specific configuration to be added to the common configuration (at the end of the common configuration). This variable can be defined, for example, in template {{{pro_site_cluster_info.tpl}}}.
     40
     41== VO Configuration ==
     42
     43VO configuration consists to define variable {{{VOS}}} in {{{pro_lcg2_config_site.tpl}}}. This variable can also be redefined in the context of a specific node, if {{{pro_lcg2_config_site.tpl}}} defines {{{VOS}}} as a default value.
     44
     45VO configuration is done by template {{{vo/pro_vo_config.tpl}}}. Behaviour of this template can be customized with variables. Main variables are (see the template for the full list) :
     46
     47 * NODE_VO_LIST (list) : define the list of VO to initialize on current node. Default :  VOS variable defined in {{{pro_lcg2_config_site}}}.
     48 * NODE_VO_POOLACCOUNTS (boolean) : pool account must be created for each VO initialized. Default : true.
     49 * NODE_VO_GRIDMAPDIR_CONFIG (boolean) : gridmapdir entries must be initialized for pool accounts. Default : NODE_VO_POOLACCOUNTS variable.
     50 * NODE_VO_SITE_CONFIG (string) : site specific template that must be included before actually doing VO intialization. Allow for specific VO modification to default VO configuration.Default : none.
     51 * NODE_VO_WLCONFIG (boolean) : initialize workload management environment for each VO. Normally enabled only on resource brokers. Default : false.
     52 * NODE_VO_CREATEHOME (boolean) : create home directories for pool accounts. Default : true. 
     53
     54Templates defining machine types define these variables to the value appriated for a given machine type and there should be normally no need to define these variables.
     55
     56Adding a new VO to standard VOs require creating 2 templates. Use an existing VO, in {{{vo}}} directory, as a template.
     57
    758
    859== Allocation of Service Accounts ==
     
    82133There is no default template provided for DPM configuration. To build your own template, you can look at template [source:templates/trunk/sites/example/site/pro_se_dpm_config.tpl pro_se_dpm_config.tpl] in examples provided with QWG templates.
    83134
     135On DPM head node, variable `SEDPM_SRM_SERVER` must be defined to `true`. This variable is `false` by default (DPM disk servers).
     136
    84137If you want to use Oracle version of DPM server define the following variable in your machine profile :
    85138{{{