Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
local-princeton-siteconf: add SITECONF for T3_US_Princeton_ARM
Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
- Loading branch information
David Abdurachmanov
authored and
David Abdurachmanov
committed
Dec 4, 2015
1 parent
351d5cc
commit c45811d
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
### RPM cms local-princeton-siteconf 1.0 | ||
## NOCOMPILER | ||
|
||
%prep | ||
# NOP | ||
|
||
%build | ||
# NOP | ||
|
||
%install | ||
mkdir -p %{i}/SITECONF/T3_US_Princeton_ARM/{JobConfig,PhEDEx} | ||
ln -s T3_US_Princeton_ARM %{i}/SITECONF/local | ||
|
||
cat <<XMLEOF > %{i}/SITECONF/T3_US_Princeton_ARM/JobConfig/site-local-config.xml | ||
<site-local-config> | ||
<site name="T3_US_Princeton_ARM"> | ||
<event-data> | ||
<catalog url="trivialcatalog_file:%{i}/SITECONF/local/PhEDEx/storage.xml?protocol=xrootd"/> | ||
</event-data> | ||
<source-config> | ||
<cache-hint value="storage-only"/> | ||
<read-hint value="read-ahead-buffered"/> | ||
<ttree-cache-size value="33554432"/> | ||
</source-config> | ||
<calib-data> | ||
<frontier-connect> | ||
<failover toserver="no"/> | ||
<load balance="proxies"/> | ||
<proxy url="http://della.princeton.edu:3128"/> | ||
<server url="http://cmsfrontier.cern.ch:8000/FrontierInt"/> | ||
<server url="http://cmsfrontier1.cern.ch:8000/FrontierInt"/> | ||
<server url="http://cmsfrontier2.cern.ch:8000/FrontierInt"/> | ||
<server url="http://cmsfrontier3.cern.ch:8000/FrontierInt"/> | ||
</frontier-connect> | ||
</calib-data> | ||
</site> | ||
</site-local-config> | ||
XMLEOF | ||
|
||
cat <<XMLEOF > %{i}/SITECONF/T3_US_Princeton_ARM/PhEDEx/storage.xml | ||
<storage-mapping> | ||
<lfn-to-pfn | ||
protocol="xrootd" | ||
destination-match=".*" | ||
path-match="/+store/(.*)" | ||
result="root://xrootd.unl.edu//store/\$1?source=non_cms"/> | ||
<lfn-to-pfn | ||
protocol="direct" | ||
path-match="/+store/(.*)" | ||
result="/cms/store/$1"/> | ||
</storage-mapping> | ||
XMLEOF | ||
|
||
%post | ||
%{relocateConfig}/SITECONF/T3_US_Princeton_ARM/JobConfig/site-local-config.xml | ||
if [ ! -d $RPM_INSTALL_PREFIX/SITECONF ] ; then | ||
rm -f $RPM_INSTALL_PREFIX/SITECONF | ||
ln -s %{pkgrel}/SITECONF $RPM_INSTALL_PREFIX/SITECONF | ||
fi |