Last active
September 24, 2015 15:13
-
-
Save sustr4/eadca10320d9eebbb36d to your computer and use it in GitHub Desktop.
Install VOMS and create a testing VO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#INSTALL EPEL, UMD and VOMS | |
rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
rpm -ivh http://repository.egi.eu/sw/production/umd/3/sl6/x86_64/updates/umd-release-3.0.1-1.el6.noarch.rpm | |
yum install -y voms-server yum-priorities voms-admin-client voms-admin-server mysql-server voms-mysql-plugin xml-commons-apis | |
service mysqld start | |
/usr/bin/mysqladmin -u root password [Edited]; | |
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]';" | |
voms-configure install \ | |
--dbtype mysql \ | |
--vo vo.org \ | |
--createdb \ | |
--deploy-database \ | |
--dbauser root \ | |
--dbapwd [Edited] \ | |
--dbusername admin-vo.org \ | |
--dbpassword secret \ | |
--mail-from [email protected] \ | |
--smtp-host smtp.domain \ | |
--sqlloc /usr/lib64/voms/libvomsmysql.so \ | |
--cert /etc/grid-security/hostcert.pem \ | |
--key /etc/grid-security/hostkey.pem \ | |
--core-port 15000 | |
rpm -ivh https://homeproj.cesnet.cz/rpm/perunv3/stable/noarch/perun-slave-3.0.0-0.0.88.noarch.rpm | |
#USAGE | |
voms-admin --vo vo.org list-members /vo.org | |
voms-admin --nousercert --vo vo.org create-user "/DC=org/DC=terena/DC=tcs/C=CZ/O=CESNET/CN=Zdenek Sustr 4040" "/C=NL/O=TERENA/CN=TERENA eScience Personal CA" "$USERNAME" "root@`hostname -f`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🚧