Adding extra VOs

From GridPP Wiki
Jump to: navigation, search

Adding extra VOs

10th July 2007

on your installation server (eg t2lcfg) use Yves script make_users.conf-glite3.sh or similar to create a new user.conf file. (Once you have created the new groups.conf, users.conf, site-info.def you can copy these out to your nodes and re run the yaim setup step. I'm assuming that you do not need to perform any yum updates at all as you are already up to date.)

First edit the script (eg make_users.conf-glite3.sh) to add the new VOs, eg add

VO="gridpp"
VOgid=4100
VOuid=32000
npool=100
npoolold=0
addVO

once the script has run it should create 100 pool accounts, an sgm account and a prd account. (For some VOs further tweaking of users.conf is required eg for minos which is actually minos.vo.gridpp.ac.uk run

sed s/minos::/minos.vo.gridpp.ac.uk::/g users.new.conf >users.new.conf.pdg2

)

then edit by hand the two lines for sgm and prd. This will give account names starting with gridpp001 in group gridpp for VO gridpp eg:

32001:gridppsgm:4100:gridpp:gridpp:sgm:
32002:gridppprd:4100:gridpp:gridpp:prd:
32003:gridpp001:4100:gridpp:gridpp::
32004:gridpp002:4100:gridpp:gridpp::
32005:gridpp003:4100:gridpp:gridpp::
.
.
.

Now edit the groups.conf file, if you have many vos to add create a small file called new-vos with the names of the vos then

for vo in `cat new-vos`; do 
echo "\"/VO=$vo/GROUP=/$vo/ROLE=lcgadmin\":::sgm:">>newgroups.conf.bit; 
echo "\"/VO=$vo/GROUP=/$vo/ROLE=production\":::prd:">>newgroups.conf.bit; 
echo "\"/VO=$vo/GROUP=/$vo\"::::">>newgroups.conf.bit; 
done

Check the newgroups.conf and if happy append to your groups.conf file. Now edit the site-info.def file, each VO's details need to be acquired either from the GridPP approved VOs page or the yaim tool or the VO cards for the particular VO.

Note with newer versons of yaim you must use the new directory structure for the DNS style VOs. in a subdirectory called vo.d add a file withe the name of the vo eg for minos.vo.gridpp.ac.uk


SW_DIR="$VO_SW_DIR/minos"
VO_DEFAULT_SE="$CLASSIC_HOST"
VO_STORAGE_DIR="$CLASSIC_STORAGE_DIR/minos"

VO_VOMS_SERVERS="vomss://voms.gridpp.ac.uk:8443/voms/minos.vo.gridpp.ac.uk?/minos.vo.gridpp.ac.uk/"
VO_VOMSES="'minos.vo.gridpp.ac.uk voms.gridpp.ac.uk 15016 /C=UK/O=eScience/OU=Manchester/L=HEP/CN=voms.gridpp.ac.uk/Email=ho
stmaster@hep.man.ac.uk minos.vo.gridpp.ac.uk'"

MORE HERE LATER .....