xcache-config.cfg.j2 1.22 KB
Newer Older
MUSSET Paul's avatar
MUSSET Paul committed
1 2 3 4 5 6
all.export      /

# roles in the cluster (do not have to be written if its a standalone server)
# all.role        proxy server

# remote data source
MUSSET Paul's avatar
MUSSET Paul committed
7
pss.origin =
MUSSET Paul's avatar
MUSSET Paul committed
8 9 10 11 12 13 14 15

# proxy plugin
ofs.osslib libXrdPss.so

# Proxy File Cache aka XCache
pss.cachelib libXrdFileCache.so

# Namespace (contains link to the actual data)
MUSSET Paul's avatar
MUSSET Paul committed
16
oss.localroot /mnt/xcache/ns/
MUSSET Paul's avatar
MUSSET Paul committed
17 18

# Metadata directories (cinfo files)
19
oss.space meta /mnt/xcache/metadata
MUSSET Paul's avatar
MUSSET Paul committed
20 21

# Data directories
22
oss.space data /mnt/xcache/storage/data*
MUSSET Paul's avatar
MUSSET Paul committed
23 24 25 26 27 28 29

# Xcache spaces assignement
pfc.spaces data meta

# add http support
if exec xrootd
  xrd.protocol http libXrdHttp.so 
MUSSET Paul's avatar
MUSSET Paul committed
30
{% if auth is defined and auth %}
MUSSET Paul's avatar
MUSSET Paul committed
31 32 33 34
  http.cadir /etc/grid-security/certificates
  http.cert /run/secrets/xrdcert.pem
  http.key /run/secrets/xrdkey.pem
  http.secxtractor libXrdSecgsiVOMS.so
MUSSET Paul's avatar
MUSSET Paul committed
35
{% endif %}
MUSSET Paul's avatar
MUSSET Paul committed
36 37 38 39 40 41 42 43 44 45
fi

# cache log level
# pfc.trace dump
# oss.trace all
# xrootd.trace all
# xrd.trace all
# sec.trace all


MUSSET Paul's avatar
MUSSET Paul committed
46
{% if auth is defined and auth %}
MUSSET Paul's avatar
MUSSET Paul committed
47 48
# authentication
xrootd.seclib libXrdSec.so
MUSSET Paul's avatar
MUSSET Paul committed
49
sec.protocol gsi -crl:0 -cert:/run/secrets/xrdcert.pem -key:/run/secrets/xrdkey.pem -gridmap:/dev/null -vomsfun:/usr/lib64/libXrdVoms.so -vomsfunparms:vos=escape
MUSSET Paul's avatar
MUSSET Paul committed
50 51 52 53 54
sec.protbind * gsi

# authorization
ofs.authorize 1
acc.authdb /etc/xrootd/Authfile
MUSSET Paul's avatar
MUSSET Paul committed
55
{% endif %}