-
Notifications
You must be signed in to change notification settings - Fork 3
/
config-osg.opensciencegrid.org.conf
34 lines (28 loc) · 1.33 KB
/
config-osg.opensciencegrid.org.conf
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
# Other than setting the CVMFS_SERVER_URL, this file copies the logic from
# default.conf and common.conf in the configuration repository
if [ -z "$CVMFS_PAC_URLS" ] || [ "$CVMFS_PAC_URLS" = "http://wpad/wpad.dat" ]; then
if [ "$(($$ % 2))" -eq 1 ]; then
CVMFS_PAC_URLS="http://grid-wpad/wpad.dat;http://wpad/wpad.dat;http://cernvm-wpad.fnal.gov/wpad.dat;http://cernvm-wpad.cern.ch/wpad.dat"
else
CVMFS_PAC_URLS="http://grid-wpad/wpad.dat;http://wpad/wpad.dat;http://cernvm-wpad.cern.ch/wpad.dat;http://cernvm-wpad.fnal.gov/wpad.dat"
fi
fi
if [ "$CVMFS_CLIENT_PROFILE" = "single" ]; then
if [ "$CVMFS_HTTP_PROXY" = "" ]; then
CVMFS_HTTP_PROXY="auto;DIRECT"
fi
fi
if [ -z "$CVMFS_USE_CDN" ]; then
if [ "$CVMFS_HTTP_PROXY" = "DIRECT" ] || [ "$CVMFS_HTTP_PROXY" = "auto;DIRECT" ]; then
CVMFS_USE_CDN=yes
fi
fi
if [ "$CVMFS_USE_CDN" = "yes" ] || [ "$CVMFS_CLIENT_PROFILE" = "custom" ]; then
CVMFS_FALLBACK_PROXY=""
fi
####
if [ "$CVMFS_USE_CDN" = "yes" ]; then
CVMFS_SERVER_URL="http://s1bnl-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1fnal-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1osggoc-cvmfs.openhtc.io/cvmfs/@fqrn@"
else
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@"
fi