Move default values to glite-lb.pre, cleanup environment variables.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 5 Aug 2010 17:02:48 +0000 (17:02 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 5 Aug 2010 17:02:48 +0000 (17:02 +0000)
org.glite.lb.yaim/config/defaults/glite-lb.pre
org.glite.lb.yaim/config/functions/config_glite_lb

index 765eb59..7fd270c 100644 (file)
@@ -1,3 +1,51 @@
 ### Default values to some glite-LB variables
+
+#
+# system settings
+#
+
 # backward compatible default location of GLITE_LOCATION_VAR
 GLITE_LOCATION_VAR=/var/glite
+# query timeout
+GLITE_WMS_QUERY_TIMEOUT=300
+# CA certificates directory
+X509_CERT_DIR='/etc/grid-security/certificates'
+# VOMS directory
+X509_VOMS_DIR='/etc/grid-security/vomsdir'
+
+#
+# purge and exports
+#
+
+# purge timeouts
+GLITE_LB_EXPORT_PURGE_ARGS='--cleared 2d --aborted 15d --cancelled 15d --other 60d'
+# enable export of the purged jobs to the Job Provenance
+GLITE_LB_EXPORT_ENABLED='false'
+# Job Provenance server
+GLITE_LB_EXPORT_JPPS=
+# prefix to the Job Provenance installation (if different from $GLITE_LOCATION)
+GLITE_JP_LOCATION=
+
+#
+# L&B configuration
+#
+
+# L&B super users (separated by comma)
+GLITE_LB_SUPER_USERS=
+# L&B service type (server/proxy/both), overrided by YAIM when needed
+GLITE_LB_TYPE=
+# configure glite-LB to be used with Real Time Monitor (harvester)
+GLITE_LB_RTM_ENABLED='false'
+# Real Time Monitoring identities (separated by comma)
+GLITE_LB_RTM_DN='/C=UK/O=eScience/OU=Imperial/L=Physics/CN=heppc24.hep.ph.ic.ac.uk/Email=janusz.martyniak@imperial.ac.uk'
+
+#
+# additional options
+#
+
+# bkserver additional options
+GLITE_LB_SERVER_OTHER_OPTIONS=
+# notification interlogger additional options
+GLITE_LB_NOTIF_IL_OTHER_OPTIONS=
+# proxy interlogger additional options
+GLITE_LB_PROXY_IL_OTHER_OPTIONS=
index 4a70c1b..ca6c1b7 100644 (file)
@@ -11,21 +11,20 @@ function config_glite_lb_setenv(){
     yaimlog ERROR "The home directory of ${GLITE_USER} doesn't exist. Check whether the user ${GLITE_USER} was properly created"
     exit ${YEX_NOSUCHFILE}
   fi
-  yaimgridenv_set GLITE_JP_LOCATION ${GLITE_JP_LOCATION:-}
-  yaimgridenv_set GLITE_WMS_QUERY_TIMEOUT ${GLITE_WMS_QUERY_TIMEOUT:-300}
+  yaimgridenv_set GLITE_WMS_QUERY_TIMEOUT "${GLITE_WMS_QUERY_TIMEOUT}"
   yaimgridenv_set GLITE_HOST_CERT ${GLITE_HOME_DIR:-/home/glite}/.certs/hostcert.pem
   yaimgridenv_set GLITE_HOST_KEY ${GLITE_HOME_DIR:-/home/glite}/.certs/hostkey.pem
-  yaimgridenv_set X509_CERT_DIR /etc/grid-security/certificates
-  yaimgridenv_set X509_VOMS_DIR /etc/grid-security/vomsdir
+  yaimgridenv_set X509_CERT_DIR "${X509_CERT_DIR}"
+  yaimgridenv_set X509_VOMS_DIR "${X509_VOMS_DIR}"
 
   yaimgridenv_set GLITE_LB_EXPORT_ENABLED ${GLITE_LB_EXPORT_ENABLED:-false}
-  yaimgridenv_set GLITE_LB_EXPORT_PURGE_ARGS "${GLITE_LB_EXPORT_PURGE_ARGS:---cleared 2d --aborted 15d --cancelled 15d --other 60d}"
+  yaimgridenv_set GLITE_LB_EXPORT_PURGE_ARGS "${GLITE_LB_EXPORT_PURGE_ARGS}"
   yaimgridenv_set GLITE_LB_EXPORT_JPPS ${GLITE_LB_EXPORT_JPPS:-}
-  yaimgridenv_set GLITE_LB_RTM_ENABLED ${GLITE_LB_RTM_ENABLED:-false}
-  yaimgridenv_set GLITE_LB_RTM_DN "${GLITE_LB_RTM_DN:-/C=UK/O=eScience/OU=Imperial/L=Physics/CN=heppc24.hep.ph.ic.ac.uk/Email=janusz.martyniak@imperial.ac.uk}"
-  yaimgridenv_set GLITE_LB_SUPER_USERS "${GLITE_LB_SUPER_USERS:-}"
-  yaimgridenv_set GLITE_LB_HARVESTER_ENABLED ${GLITE_LB_HARVESTER_ENABLED:-false}
-  yaimgridenv_set GLITE_LB_HARVESTER_MSG_OPTIONS "${GLITE_LB_HARVESTER_MSG_OPTIONS:---wlcg}"
+  yaimgridenv_set GLITE_JP_LOCATION "${GLITE_JP_LOCATION}"
+
+  yaimgridenv_set GLITE_LB_SERVER_OTHER_OPTIONS "${GLITE_LB_SERVER_OTHER_OPTIONS}"
+  yaimgridenv_set GLITE_LB_NOTIF_IL_OTHER_OPTIONS "${GLITE_LB_NOTIF_IL_OTHER_OPTIONS}"
+  yaimgridenv_set GLITE_LB_PROXY_IL_OTHER_OPTIONS "${GLITE_LB_PROXY_IL_OTHER_OPTIONS}"
 
   #
   # default L&B mode (proxy/server/both) according to the node list,