From: Zdeněk Šustr Date: Wed, 15 Feb 2012 11:05:32 +0000 (+0000) Subject: Use external voms server if vomses configured X-Git-Tag: gridsite-core_R_1_7_17~106 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=8b42149d89b28672844c7da30f6d448ee4763d28;p=jra1mw.git Use external voms server if vomses configured --- diff --git a/org.glite.testsuites.ctb/PX/tests/px-common-testbeds.sh b/org.glite.testsuites.ctb/PX/tests/px-common-testbeds.sh index 875da8c..4a39e69 100755 --- a/org.glite.testsuites.ctb/PX/tests/px-common-testbeds.sh +++ b/org.glite.testsuites.ctb/PX/tests/px-common-testbeds.sh @@ -49,7 +49,7 @@ CVSPATH=\`which cvs\` if [ "\$CVSPATH" = "" ]; then printf "CVS binary not present" - ${INSTALLCMD} globus-proxy-utils voms-clients curl wget + ${INSTALLCMD} cvs fi glite_id=\`id -u \$GLITE_USER\` @@ -71,16 +71,19 @@ else fi fi -service mysqld start +if [ ! -d /etc/vomses ]; then + ${INSTALLCMD} emi-voms-mysql -/usr/bin/mysqladmin -u root password [Edited]; + service mysqld start -mysql --user=root --password=[Edited] -e "grant all on *.* to 'root'@'\`hostname\`' identified by '[Edited]';" -mysql --user=root --password=[Edited] -e "grant all on *.* to 'root'@'\`hostname -f\`' identified by '[Edited]';" + /usr/bin/mysqladmin -u root password [Edited]; -cd -mkdir -p yaim/services -cd yaim + mysql --user=root --password=[Edited] -e "grant all on *.* to 'root'@'\`hostname\`' identified by '[Edited]';" + mysql --user=root --password=[Edited] -e "grant all on *.* to 'root'@'\`hostname -f\`' identified by '[Edited]';" + + cd + mkdir -p yaim/services + cd yaim cat << EOF > site-info-voms.def MYSQL_PASSWORD="[Edited]" @@ -102,17 +105,24 @@ VOMS_ADMIN_SMTP_HOST=[Edited] VOMS_ADMIN_MAIL=[Edited] EOF -sed -i 's/155/255/g' /opt/glite/yaim/examples/edgusers.conf -sed -i 's/156/256/g' /opt/glite/yaim/examples/edgusers.conf + sed -i 's/155/255/g' /opt/glite/yaim/examples/edgusers.conf + sed -i 's/156/256/g' /opt/glite/yaim/examples/edgusers.conf + + /opt/glite/yaim/bin/yaim -c -s site-info-voms.def -n VOMS -/opt/glite/yaim/bin/yaim -c -s site-info-voms.def -n VOMS + source /etc/profile.d/grid-env.sh -source /etc/profile.d/grid-env.sh + voms-admin --nousercert --vo vo.org create-user "/C=UG/L=Tropic/O=Utopia/OU=Relaxation/CN=glite" "/C=UG/L=Tropic/O=Utopia/OU=Relaxation/CN=the trusted CA" "glite" "root@`hostname -f`" -voms-admin --nousercert --vo vo.org create-user "/C=UG/L=Tropic/O=Utopia/OU=Relaxation/CN=glite" "/C=UG/L=Tropic/O=Utopia/OU=Relaxation/CN=the trusted CA" "glite" "root@`hostname -f`" + mkdir -p /etc/vomses + cat /etc/voms-admin/vo.org/vomses > /etc/vomses/`hostname -f` +else + printf "Using external voms server:\n===========================\n" + find /etc/vomses -type f -exec printf "{}: " \; -exec cat {} \; + printf "===========================\n" + +fi -mkdir -p /etc/vomses -cat /etc/voms-admin/vo.org/vomses > /etc/vomses/`hostname -f` cd /tmp/