First import
authorRobert Harakaly <robert.harakaly@cern.ch>
Fri, 20 Apr 2007 07:47:29 +0000 (07:47 +0000)
committerRobert Harakaly <robert.harakaly@cern.ch>
Fri, 20 Apr 2007 07:47:29 +0000 (07:47 +0000)
org.glite.yaim.lb/.cvsignore [new file with mode: 0644]
org.glite.yaim.lb/Makefile [new file with mode: 0644]
org.glite.yaim.lb/config/functions/config_glite_lb [new file with mode: 0644]
org.glite.yaim.lb/config/node-info.d/glite-lb [new file with mode: 0644]

diff --git a/org.glite.yaim.lb/.cvsignore b/org.glite.yaim.lb/.cvsignore
new file mode 100644 (file)
index 0000000..3a4edf6
--- /dev/null
@@ -0,0 +1 @@
+.project
diff --git a/org.glite.yaim.lb/Makefile b/org.glite.yaim.lb/Makefile
new file mode 100644 (file)
index 0000000..70f2228
--- /dev/null
@@ -0,0 +1,76 @@
+PACKAGE_NAME=glite-yaim-lb
+####################################################################
+# Distribution Makefile
+####################################################################
+
+.PHONY: configure install clean
+
+all: configure
+
+####################################################################
+# Prepare
+####################################################################
+
+prepare:
+       rm -f *~ functions/*~ scripts/*~ examples/*~ 
+       @mkdir -p $(prefix)/doc/html/web
+       @mkdir -p $(prefix)/doc/man
+
+####################################################################
+# Configure
+####################################################################
+
+configure: 
+       @echo "No configuration required, use either 'make install' or 'make rpm'."
+
+####################################################################
+# Compile
+####################################################################
+
+compile: 
+       @echo "No compiling required, use either 'make install' or 'make rpm'."
+
+####################################################################
+# Install
+####################################################################
+
+install:
+       @echo installing ...
+       @mkdir -p $(prefix)/yaim/functions
+       @mkdir -p $(prefix)/yaim/node-info.d
+       @install -m 0644 config/functions/* $(prefix)/yaim/functions
+       @install -m 0644 config/node-info.d/* $(prefix)/yaim/node-info.d
+
+####################################################################
+# Documentation
+####################################################################
+
+doc: man html
+
+man: prepare
+
+html: prepare
+
+web: html
+
+####################################################################
+# Install Doc
+####################################################################
+
+install-doc: doc
+       @echo installing  docs...
+
+####################################################################
+# Build Distribution
+####################################################################
+
+dist: prepare 
+       @tar --gzip --exclude='*CVS*' -cf build/$(PACKAGE_NAME).src.tgz config doc examples src
+
+rpm: dist
+       @rpmbuild -ta build/$(PACKAGE_NAME).src.tgz 
+
+clean::
+       rm -f *~ test/*~ etc/*~ doc/*~ src/*~ $(PACKAGE_NAME).src.tgz 
+       rm -rf build ${prefix}
+
diff --git a/org.glite.yaim.lb/config/functions/config_glite_lb b/org.glite.yaim.lb/config/functions/config_glite_lb
new file mode 100644 (file)
index 0000000..25a1a58
--- /dev/null
@@ -0,0 +1,17 @@
+#      TODO:
+#              Patch 1027:
+#                      (Optional) Add expected LB server "superusers" X509 subjects (one per line)
+#                      into $GLITE_LOCATION/etc/LB-super-users 
+
+
+
+function config_glite_lb(){
+       #check if config_glite_init is loaded
+       source ${FUNCTIONS_DIR}/config_glite_init
+       config_glite_init
+       
+       #       Configure gLite LB
+       run_glite_command glite-lb-config.py --conf
+    #  Start gLite LB
+    run_glite_command glite-lb-config.py --start
+}
\ No newline at end of file
diff --git a/org.glite.yaim.lb/config/node-info.d/glite-lb b/org.glite.yaim.lb/config/node-info.d/glite-lb
new file mode 100644 (file)
index 0000000..dc8684d
--- /dev/null
@@ -0,0 +1,8 @@
+LB_FUNCTIONS="
+config_crl
+config_host_certs
+config_edgusers
+config_users
+config_mkgridmap
+config_java
+config_glite_lb"
\ No newline at end of file