Fixes, added dirlist, etc ...
authorRobert Harakaly <robert.harakaly@cern.ch>
Tue, 7 Dec 2004 18:42:40 +0000 (18:42 +0000)
committerRobert Harakaly <robert.harakaly@cern.ch>
Tue, 7 Dec 2004 18:42:40 +0000 (18:42 +0000)
org.glite.deployment.lb/config/scripts/glite-lb-config.py
org.glite.deployment.lb/config/templates/glite-lb.cfg.xml

index 15995d0..82fb378 100644 (file)
@@ -114,7 +114,12 @@ python %s-config [OPTION...]""" % (self.name, os.environ['GLITE_LOCATION'], \
         return 0
         
     def configure(self):
-        
+        # Create all directories needed
+        if params.has_key('dirlist'):
+           dirlist = string.split(params['dirlist'],',')
+           for d in dirlist:
+              gLib.check_dir(d,0777)
+         
         # Create the GLITE_USER if it doesn't exists
         print "Creating/Verifying the GLITE_USER account %s" % params['GLITE_USER']
         glib.add_user(params['GLITE_USER'],params['GLITE_USER'])
index 5146ca6..8c3771e 100644 (file)
 
                <!-- MySQL DB -->
                <lb.database.name
-                       description="The mySQL database name to create for storing LB data"
-                       value="changeme"/>
+                       description="The mySQL database name to create for storing LB data
+                                               Now it must be set to the default value"
+                       value="lbserver20"/>
                        
                <lb.database.username
-                       description="The username to be used to access the local mySQL server"
-                       value="changeme"/>
+                       description="The username to be used to access the local mySQL server
+                                               Now it must be set to the default value"
+                       value="lbserver"/>
                        
                <!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
                <!-- Optimization parameters - Change them if you know what you're doing -->
                        
                <GLITE_USER
                        description="The account used to run the LB daemons"
-                       value="glite"/>
+                       value="gproduct"/>
                        
                <!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
                <!-- System parameters - You should leave these alone -->
                <!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
-
+               <dirlist value='/opt/glite/var'/>
        </parameters>
 </config>
\ No newline at end of file