# For license conditions see the license file or http://eu-egee.org/license.html
#
################################################################################
-# glite-lb-config v. 2.1.0
+# glite-lb-config v. 2.1.1
#
# Post-installation script for configuring the gLite Logging and Bookkeping Server
# Robert Harakaly < robert.harakaly@cern.ch >
def __init__(self):
self.mysql = MySQL.Mysql()
self.verbose = 0
- self.version = "2.1.0"
+ self.version = "2.1.1"
self.name = "glite-lb"
self.friendly_name = "gLite Logging and Bookkeeping"
#--------------------------------------------------------
if os.system("python %s/glite-security-utils-config.py --subservice" % glib.getScriptPath()):
- print "\nConfiguring gLite Security Utilities ",
+ print "\nConfiguring gLite Security Utilities ",
glib.printFailedMessage()
else:
- print "\nConfiguring gLite Security Utilities ",
+ print "\nConfiguring gLite Security Utilities ",
glib.printOkMessage()
# Create the GLITE_USER if it doesn't exists
glib.printOkMessage()
# Create all directories needed
- print "\nVerify CA certificates directory ",
glib.check_dir(os.environ['GLITE_CERT_DIR'])
+ print "\nVerify CA certificates directory ",
glib.printOkMessage()
# Copy certificates
# Configure MySQL
#--------------------------------------------------------
+ # Set mysql parameters
+ #self.mysql.setConfiguration('client','max_allowed_packet',params['mysql.max_allowed_packet'])
+ self.mysql.setConfiguration('mysqld','max_allowed_packet',params['mysql.max_allowed_packet'])
+
# start MySQL
self.mysql.stop()
time.sleep(5)
params['mysql.root.password'] = ""
params['lb.database.name'] = "lbserver20"
params['lb.database.username'] = "lbserver"
+ params['mysql.max_allowed_packet'] = "17"
params['lbserver.serviceName'] = 'LB Server service at %s' % glib.fq_hostname
params['lbserver.serviceType'] = 'org.glite.lb.server'
description="Enable check of host certificates"
value="true"/>
+ <rgma.servicetool.activate
+ description="Turn on/off servicetool for the node.
+ [Example: true ] [Type: 'boolean']"
+ value="true"/>
+
<!-- mysql configuration -->
<set.mysql.root.password
description="If this parameter is true, then the root password of the mysql database
installation and configuration of the service, if mysql is not managed in some other way"
value="false"/>
+ <mysql.max_allowed_packet
+ description="This parameter allows to set the max_allowed_packet parameter in the mysql
+ configuration file /etc/my.cnf. The default recommended value for the LB server is 17MB
+ [Example: 17][Type: Integer][Unit: MB]"
+ value="17"/>
+
<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
<!-- System parameters - You should leave these alone -->
<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->