-
Notifications
You must be signed in to change notification settings - Fork 0
/
cvmfs_sl7.sh
executable file
·52 lines (47 loc) · 1.73 KB
/
cvmfs_sl7.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/bash
###
### Author: [email protected]
### Date: Apr 18, 2020
### Desc: Install CVMFS and configure it for LIGO data via the Gravitational Wave Open Science Center
###
### Based on:
###
### https://www.gw-openscience.org/cvmfs/
### https://cernvm.cern.ch/portal/filesystem/quickstart
###
##
## Install.
##
yum install -y https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm
yum install -y cvmfs cvmfs-config-default
##
## Configure. This configures the automounter.
##
cvmfs_config setup
echo "CVMFS_HTTP_PROXY=DIRECT" > /etc/cvmfs/default.local
cat - > /etc/cvmfs/default.d/60-osg.conf <<EOF
# /etc/cvmfs/default.d/60-osg.conf
#
# DO NOT EDIT THIS FILE
# It will be replaced on upgrade. To override, edit /etc/cvmfs/default.local
#
CVMFS_SEND_INFO_HEADER=yes
CVMFS_KEYS_DIR=/etc/cvmfs/keys/opensciencegrid.org
CVMFS_USE_GEOAPI=yes
CVMFS_CONFIG_REPOSITORY=config-osg.opensciencegrid.org
CVMFS_CONFIG_REPO_REQUIRED=yes
CVMFS_FALLBACK_PROXY=http://cvmfsbproxy.cern.ch:3126;http://cvmfsbproxy.fnal.gov:3126
EOF
echo "CVMFS_SERVER_URL=http://cvmfs-s1bnl.opensciencegrid.org:8000/cvmfs/@fqrn@;http://cvmfs-s1fnal.opensciencegrid.org:8000/cvmfs/@fqrn@;http://cvmfs-s1goc.opensciencegrid.org:8000/cvmfs/@fqrn@" > /etc/cvmfs/config.d/config-osg.opensciencegrid.org.conf
##
## Create mount points.
##
mkdir -p /cvmfs/config-osg.opensciencegrid.org
mkdir -p /cvmfs/oasis.opensciencegrid.org
mkdir -p /cvmfs/gwosc.osgstorage.org
##
## Mount file systems if necessary. They should be auto mounted.
##
#mount -t cvmfs config-osg.opensciencegrid.org /cvmfs/config-osg.opensciencegrid.org
#mount -t cvmfs oasis.opensciencegrid.org /cvmfs/oasis.opensciencegrid.org
#mount -t cvmfs gwosc.osgstorage.org /cvmfs/gwosc.osgstorage.org