Commit bbfd0034 authored by Julien Leduc's avatar Julien Leduc
Browse files

Adding the needed components to create and install quarkDB

parent 9fed5884
[eos-quarkdb]
name=EOS QuarkDB Repository
baseurl=http://storage-ci.web.cern.ch/storage-ci/quarkdb/tag/el7/x86_64/
gpgcheck=0
enabled=0
priority=5
......@@ -57,6 +57,9 @@ echo "mgmofs.protowfresource /ctafrontend" >> /etc/xrd.cf.mgm
# Add configmap based configuration (initially Namespace)
test -f /etc/config/eos/xrd.cf.mgm && cat /etc/config/eos/xrd.cf.mgm >> /etc/xrd.cf.mgm
# quarkDB only for systemd initially...
cat /etc/config/eos/xrd.cf.mgm | grep mgmofs.nslib | grep -qi eosnsquarkdb && /opt/run/bin/start_quarkdb.sh
# prepare eos startup
# skip systemd for eos initscripts
export SYSTEMCTL_SKIP_REDIRECT=1
......
#!/bin/bash
QUARKDB_CONFIG=/etc/config/eos/xrootd-quarkdb.cfg
QUARKDB_DIRECTORY=$(cat ${QUARKDB_CONFIG} | grep redis.database | sed -e 's/.*redis.database\ \+//')
yum-config-manager --enable eos-quarkdb
yum install -y quarkdb
quarkdb-create --path ${QUARKDB_DIRECTORY}
chown -R xrootd:xrootd ${QUARKDB_DIRECTORY}
cp -f ${QUARKDB_CONFIG} /etc/xrootd/xrootd-quarkdb.cfg
systemctl start xrootd@quarkdb
systemctl status xrootd@quarkdb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment