Skip to content
Snippets Groups Projects
Commit 04e75638 authored by Julien Leduc's avatar Julien Leduc
Browse files

adding grpc configuration on frontend and mgm

parent ca114fdc
No related branches found
No related tags found
No related merge requests found
......@@ -344,6 +344,17 @@ fi
# configure preprod directory separately
/opt/run/bin/eos_configure_preprod.sh
# configure grpc for cta-admin tf dsk file resolution
if [ -r /etc/config/eoscta/eos.grpc.keytab ]; then
MIGRATION_UID=2
MIGRATION_TOKEN=$(cat /etc/config/eoscta/eos.grpc.keytab | egrep ^$(hostname) | awk '{print $3}')
eos vid add gateway [:1] grpc
eos vid set membership ${MIGRATION_UID} +sudo
eos vid set map -grpc key:${MIGRATION_TOKEN} vuid:${MIGRATION_UID} vgid:${MIGRATION_UID}
fi
# configuration for migration tools
cat <<EOF >/etc/cta/castor-migration.conf
castor.db_login oracle:castor/<password>@castor
......
......@@ -42,6 +42,18 @@ echo OK
echo "Core files are available as $(cat /proc/sys/kernel/core_pattern) so that those are available as artifacts"
# Configuring grpc for cta-admin tapefile disk filename resolution
echo -n "Configuring grpc to ctaeos: "
if [ -r /etc/config/eoscta/eos.grpc.keytab ]; then
cp /etc/config/eoscta/eos.grpc.keytab /etc/cta/eos.grpc.keytab
echo 'cta.ns.config /etc/cta/eos.grpc.keytab' >> /etc/cta/cta-frontend-xrootd.conf
echo 'OK'
else
echo 'KO'
fi
if [ "-${CI_CONTEXT}-" == '-nosystemd-' ]; then
# systemd is not available
runuser --shell='/bin/bash' --session-command='cd ~cta; xrootd -l /var/log/cta-frontend-xrootd.log -k fifo -n cta -c /etc/cta/cta-frontend-xrootd.conf -I v4' cta
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment