Changes between Version 172 and Version 173 of Doc/gLite/TemplateCustomization
- Timestamp:
- May 18, 2010, 1:10:20 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/gLite/TemplateCustomization
v172 v173 8 8 All site parameters related to QWG middleware are supposed to be declared in one template `site/glite/config.tpl` (or any other site-specific templates it may include). To start a new site, import the site parameter template [source:templates/trunk/sites/example/site/site/glite/config.tpl example]. The list of all available variables with their description and their default value can be consulted in template source:templates/trunk/grid/glite-3.1/defaults/glite.tpl. '''This template is a critical part of standard templates and should not be modified or duplicated'''. 9 9 10 ''Note : Information in this page may document features or configuration options not present in the current release. These information are related to changes and improvement that will be available in next release and are already present in the [source:templates/branches/gLite-3.1 current development branch]. If you are urgently requiringthese features, [wiki:Download/QWGTemplates use content] of this branch.''11 12 Documentation in this page is based on [source:templates/trunk/grid/glite-3.1 QWG templates for gLite 3.1]. Most of the documentation also applies to deprecated [source:templates/trunk/grid/glite-3.0.0 QWG templates for gLite 3.0], except when explicitly stated or for features supported only by 3.1 serie .10 ''Note : Information in this page may document features or configuration options not present in the current release. These information are related to changes and improvement that will be available in next release and are already present in the [source:templates/branches/gLite-3.1 current development branch]. If you urgently require these features, [wiki:Download/QWGTemplates use content] of this branch.'' 11 12 Documentation in this page is based on [source:templates/trunk/grid/glite-3.1 QWG templates for gLite 3.1]. Most of the documentation also applies to deprecated [source:templates/trunk/grid/glite-3.0.0 QWG templates for gLite 3.0], except when explicitly stated or for features supported only by 3.1 series. 13 13 14 14 ''Note: this documentation often makes reference to a template called `site/glite/config.tpl`. This template used to be called `pro_lcg2_config_site.tpl` in the past. Both names are valid and taken into account by current templates, even though the namespaced name is the recommended one.'' … … 24 24 To 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). 25 25 26 Here an example for configuring a Torquebased CE :26 Here is an example for configuring a Torque-based CE : 27 27 28 28 {{{ … … 44 44 In this example, {{{CE_CONFIG_SITE}}} specify the name of a template defining the Torque configuration. 45 45 46 All 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 base 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, intemplate {{{pro_site_cluster_info.tpl}}}.46 All the machine types share a common basic configuration, described in template `machine-types/base.tpl`. This template allows you to add site-specific configuration to this common base configuration (e.g. configuration of a monitoring agent). This is done by defining the 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 the template {{{pro_site_cluster_info.tpl}}}. 47 47 48 48 The following sections describe specific variables that can be used with each machine type. The machine type template to include is specified at the beginning of the section as ''Base template''. In addition, to get more details, you can look at [source:templates/clusters/example-3.1/profiles examples]. … … 50 50 === Creating a New Machine Type === 51 51 52 All gLite machines types use a common base configuration, described in [source:templates/trunk/grid/glite-3.1/machine-types/base.tpl machine-types/base.tpl]. This template sis responsible in particular to do the base OS configuration, VO configuration and NFS configuration.53 54 When creating a new machine type derived from this gLite base machine type s, it is necessary, at '''the very end''' of the new machine type, to include the gLite update and postconfig templates, using the following PAN statement:52 All gLite machines types use a common base configuration, described in [source:templates/trunk/grid/glite-3.1/machine-types/base.tpl machine-types/base.tpl]. This template is responsible in particular to do the base OS configuration, VO configuration and NFS configuration. 53 54 When creating a new machine type derived from this gLite base machine type, it is necessary, at '''the very end''' of the new machine type, to include the gLite update and postconfig templates, using the following PAN statement: 55 55 {{{ 56 56 # gLite updates … … 102 102 ''Note : `dteam` and `ops` are mandatory VOs for EGEE sites.'' 103 103 104 As an alternative to listing explicitly all the VOs supported on a node, it is possible to define variable `VOS` as the string `ALL` (instead of a list). In this case, all VOs with parameters available in the configuration (normally all the VOs registered in the [http://www.gridops.org CIC portal]) are configured. This specific value should normally be restricted to UIs where there are no VO accounts created. Its main usage is to let user on a UI act as a member of any VO they may be registered in. On a gsissh-enabled UI, it is advisable to restrict the VOs allowed to connect to the UI with `gsissh` to a limited number of VOs when `VOS='ALL'`. See section on UI configuration for more details.104 As an alternative to listing explicitly all the VOs supported on a node, it is possible to define variable `VOS` as the string `ALL` (instead of a list). In this case, all VOs with parameters available in the configuration (normally all the VOs registered in the [http://www.gridops.org CIC portal]) are configured. This specific value should normally be restricted to UIs where there are no VO accounts created. Its main usage is to let a user on a UI act as a member of any VO they may be registered in. On a gsissh-enabled UI, it is advisable to restrict the VOs allowed to connect to the UI with `gsissh` to a limited number of VOs when `VOS='ALL'`. See the section on UI configuration for more details. 105 105 106 106 For each VO listed in `VOS`, there must be a template defining the VO parameters in `vo/params` or an entry in `vo/site/aliases`. The template name in `vo/params` must be the VO full name even though a VO alias name is used in `VOS`. If the VO to be added has no template to define its parameters, refer to the next section about adding a new VO. 107 107 108 ''Note: VO alias names are alternative names for VOs locally defined. Unlike ,VO names which are guaranteed to be unique, VO aliases may clash with another alias or full name. They must be used mainly to maintain backward compatibility in existing configurations where a name other than the VO full name was used. The use of VO alias is '''strongly''' discouraged for a new configuration or new VOs added to an existing configuration.''108 ''Note: VO alias names are alternative names for VOs locally defined. Unlike VO names which are guaranteed to be unique, VO aliases may clash with another alias or full name. They must be used mainly to maintain backward compatibility in existing configurations where a name other than the VO full name was used. The use of VO alias is '''strongly''' discouraged for a new configuration or new VOs added to an existing configuration.'' 109 109 110 For some specific purposes, it is possible to execute a site-specific template just before starting the VO configuration, after the site param aters have been read and the OS configuration has been done. Use variable `NODE_VO_CONFIG` to specify the name of the template.110 For some specific purposes, it is possible to execute a site-specific template just before starting the VO configuration, after the site parameters have been read and the OS configuration has been done. Use variable `NODE_VO_CONFIG` to specify the name of the template. 111 111 112 112 … … 115 115 Templates related to VO configuration handle everything related to VO configuration on a specific node, including creation of VO accounts (pool accounts, SW manager...). See below for the parameters related to account creation. 116 116 117 By default, the VO accounts are created locked to prevent their interactive use. There is one exception : ifvariable `GSISSH_SERVER_ENABLED` equals `true`, these accounts are automatically unlocked. This happens mainly on [wiki:Doc/gLite/TemplateCustomization#UI UI] and [wiki:Doc/gLite/TemplateCustomization#VOBOX VOBOX].117 By default, the VO accounts are created locked to prevent their interactive use. There is one exception: if the variable `GSISSH_SERVER_ENABLED` equals `true`, these accounts are automatically unlocked. This happens mainly on [wiki:Doc/gLite/TemplateCustomization#UI UI] and [wiki:Doc/gLite/TemplateCustomization#VOBOX VOBOX]. 118 118 119 119 … … 137 137 === Site-Specific Defaults for VO Parameters === #VODefaultParams 138 138 139 It is possible to define site-specific defaults for VOs that override standard default. This must be done by defining entry `DEFAULT` in nlist variable `VOS_SITE_PARAMS`. This entry is used to define param aters that will apply to all VOs if they are not defined explicitly in VO parameters.139 It is possible to define site-specific defaults for VOs that override standard default. This must be done by defining entry `DEFAULT` in nlist variable `VOS_SITE_PARAMS`. This entry is used to define parameters that will apply to all VOs if they are not defined explicitly in VO parameters. 140 140 141 141 Each entry value must be the name of a structure template or a nlist defining any of these properties : … … 1061 1061 * `VOMS_CRON_EMAIL`: user to notify in case of problems during cron jobs. Default: `root@localhost`. 1062 1062 1063 In addition to configuring the previous variable, it is generally necessary to install the certificate of the initial administrator of the VO. This certificate is passed in param ater `adminCert` in VO parameters (`VOMS_VOS`). This is typically done with Quattor configuration module `filecopy` in the site-specific configuration of the VOMS server. A typical sequence to do this is:1063 In addition to configuring the previous variable, it is generally necessary to install the certificate of the initial administrator of the VO. This certificate is passed in parameter `adminCert` in VO parameters (`VOMS_VOS`). This is typically done with Quattor configuration module `filecopy` in the site-specific configuration of the VOMS server. A typical sequence to do this is: 1064 1064 {{{ 1065 1065 include { 'components/filecopy/config' };