EMI2 APEL

Preliminaries
Clean install of the APEL publisher on CentOS 6.4. Database and hostcert rescued from previous SL5 install. The /tmp partition needs 12 GB.

Repos and Software
(a) CAs
wget http://repository.egi.eu/sw/production/cas/1/current/repo-files/EGI-trustanchors.repo -O /etc/yum.repos.d/EGI-trustanchors.repo
yum install ca-policy-egi-core
(b) EPEL:
wget http://www.nic.funet.fi/pub/mirrors/fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -i epel-release-6-8.noarch.rpm
(c) EMI
rpm --import http://emisoft.web.cern.ch/emisoft/dist/EMI/2/RPM-GPG-KEY-emi
wget http://emisoft.web.cern.ch/emisoft/dist/EMI/2/sl6/x86_64/base/emi-release-2.0.0-1.sl6.noarch.rpm
yum localinstall emi-release-2.0.0-1.sl6.noarch.rpm
yum clean all
yum install emi-apel

Hostcert
copy hostcert/hostkey to /etc/grid-security

Configuration
Fix GGUS 77150.

mkdir /opt/glite/yaim/siteinfo; chmod 700 /opt/glite/yaim/siteinfo;
/opt/glite/yaim/bin/yaim -c -s /opt/glite/yaim/siteinfo/siteinfo-lcgmon01.def -n APEL

Run once for each CE (yes, 6 times total - or you can fish out the mysql command and run it by hand)
In iptables/ip6tables open the ports for the CEs only.
Change the time when the cron job runs to the afternoon. I think it runs better when I glare at it.