ce-condor can be installed as follow.
$ su - root # ###set public interface # #rocks set host interface ip ce-0-0 iface=eth1 ip=1.2.3.5 #rocks set host interface name ce-0-0 iface=eth1 name=rocks-ce #rocks set host interface subnet ce-0-0 eth1 public #rocks set host attr ce-0-0 primary_net public #rocks add host route ce-0-0 0.0.0.0 1.2.3.1 netmask=0.0.0.0 #rocks add host attr ce-0-0 OSG_CE value="condor" #rocks add host attr ce-0-0 OSG_Condor_Daemons value="MASTER, SCHEDD" # ## Automatic throughout attributes (survive reinstalls) ## Example ## Attrs used to fill gip (only need to set one time) #rocks add host attr ce-0-0 OSG_CE_gip_multicluster value=2 #rocks add host attr ce-0-0 OSG_CE_gip_SubCluster1 value="MyClusterID" #rocks add host attr ce-0-0 OSG_CE_gip_ClusterName1 value="MyClusterName" #rocks add host attr ce-0-0 OSG_CE_gip_SubCluster2 value="MyClusterID2" #rocks add host attr ce-0-0 OSG_CE_gip_ClusterName2 value="MyClusterName2" ## more gip associated to having storage (assuming one SE) #rocks add host attr ce-0-0 OSG_CE_gip_NmultiSE value=1 #rocks add host attr ce-0-0 OSG_CE_gip_SE1 value="MySE-ID" #rocks add host attr ce-0-0 OSG_CE_gip_SE_OIM_Name1 value="your SE resource OIM registered" #rocks add host attr ce-0-0 OSG_CE_gip_SEversion1 value="2.2.3.0-21" #rocks add host attr ce-0-0 OSG_CE_gip_SEpath1 value="/mnt/hadoop/user/VONAME" ## Attrs used to fill siteinfo #rocks add host attr ce-0-0 OSG_CE_siteinfo_sponsor value="uscms" #rocks add host attr ce-0-0 OSG_CE_siteinfo_contact value="Your Admin Name" #rocks add host attr ce-0-0 OSG_CE_siteinfo_email value="your_admin@mail.edu" #rocks add host attr ce-0-0 OSG_CE_siteinfo_OIM_name value="your resource OIM registered" #rocks add host attr ce-0-0 OSG_CE_siteinfo_OIM_group value="your resource group OIM registered" # ##Set hostcert/hostkey #rocks add host sec_attr ce-0-0 attr=hostcert value="/path/to/cert/hostcert.pem" crypted=true #rocks add host sec_attr ce-0-0 attr=hostkey value="/path/to/certkey/hostkey.pem" crypted=true #rocks add host sec_attr ce-0-0 attr=httpcert value="/path/to/cert/httpcert.pem" crypted=true #rocks add host sec_attr ce-0-0 attr=httpkey value="/path/to/certkey/httpkey.pem" crypted=true |
Choose either reinstall or live install + config
# # reinstall # #shoot-node ce-0-0 # # config after reinstall # start htcondor before running CE configurator (osg-configure needs condor running) #rocks run host ce-0-0 command='service condor start' # # fetch crls (osg-configure needs crls) #rocks run host ce-0-0 command='fetch-crl' # run osg-configure # (or 'rocks sync host osg CE ce-0-0' if more attr were added after install) #rocks run host ce-0-0 command='osg-configure -c' # |
live install + config option below.
# # install + config using rocks commands # #rocks sync host osg CE install ce-0-0 # # just in case a last minute or forgotten attr was set # then need to sync before continue. # rocks sync host attr ce-0-0 # # install certs by sync sec_attrs #rocks sync host sec_attr ce-0-0 # # fix ownership for /etc/grid-security/http #rocks run host ce-0-0 command='chown -R tomcat:tomcat /etc/grid-security/http' # # start htcondor before running CE configurator (osg-configure needs condor running) #rocks run host ce-0-0 command='service condor start' # # fetch crls (osg-configure needs crls) #rocks run host ce-0-0 command='fetch-crl' # use attrs to rewrite ini files and run osg-configure # (see file /root/CE_ini_filesConfigurator in your CE) #rocks sync host osg CE ce-0-0 # |
Post install (this can be put in a xml file)
# # post install # # start gatekeeper #rocks run host ce-0-0 command='service globus-gatekeeper start' # start fetch-crl cron #rocks run host ce-0-0 command='service fetch-crl-cron start' # set services to run on reboot #rocks run host ce-0-0 command='chkconfig condor on' #rocks run host ce-0-0 command='chkconfig globus-gatekeeper on' #rocks run host ce-0-0 command='chkconfig fetch-crl-cron on' #rocks run host ce-0-0 command='chkconfig fetch-crl-boot on' |