Skip to content

Commit 421720d

Browse files
authored
Merge pull request #15 from DrDaveD/SOFTWARE-4296
Apply config repo improvements to the config repo's own configuration
2 parents 7164b83 + bf30afc commit 421720d

File tree

4 files changed

+43
-7
lines changed

4 files changed

+43
-7
lines changed

60-osg.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ CVMFS_KEYS_DIR=/etc/cvmfs/keys/opensciencegrid.org
88
CVMFS_USE_GEOAPI=yes
99
CVMFS_CONFIG_REPOSITORY=config-osg.opensciencegrid.org
1010
CVMFS_CONFIG_REPO_REQUIRED=yes
11-
CVMFS_FALLBACK_PROXY="http://cvmfsbproxy.cern.ch:3126;http://cvmfsbproxy.fnal.gov:3126"
11+
CVMFS_FALLBACK_PROXY="http://cvmfsbproxy.fnal.gov:3126;http://cvmfsbproxy.cern.ch:3126"
Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
1-
if [ "$CVMFS_HTTP_PROXY" = "DIRECT" ] || [ "$CVMFS_HTTP_PROXY" = "auto;DIRECT" ]; then
2-
CVMFS_SERVER_URL="http://s1bnl-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1fnal-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1osggoc-cvmfs.openhtc.io/cvmfs/@fqrn@"
1+
# Other than setting the CVMFS_SERVER_URL, this file copies the logic from
2+
# default.conf and common.conf in the configuration repository
3+
4+
if [ -z "$CVMFS_PAC_URLS" ] || [ "$CVMFS_PAC_URLS" = "http://wpad/wpad.dat" ]; then
5+
if [ "$(($$ % 2))" -eq 1 ]; then
6+
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"
7+
else
8+
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"
9+
fi
10+
fi
11+
12+
if [ "$CVMFS_CLIENT_PROFILE" = "single" ]; then
13+
if [ "$CVMFS_HTTP_PROXY" = "" ]; then
14+
CVMFS_HTTP_PROXY="auto;DIRECT"
15+
fi
16+
fi
17+
18+
if [ -z "$CVMFS_USE_CDN" ]; then
19+
if [ "$CVMFS_HTTP_PROXY" = "DIRECT" ] || [ "$CVMFS_HTTP_PROXY" = "auto;DIRECT" ]; then
20+
CVMFS_USE_CDN=yes
21+
fi
22+
fi
23+
24+
if [ "$CVMFS_USE_CDN" = "yes" ] || [ "$CVMFS_CLIENT_PROFILE" = "custom" ]; then
325
CVMFS_FALLBACK_PROXY=""
26+
fi
27+
28+
####
29+
30+
if [ "$CVMFS_USE_CDN" = "yes" ]; then
31+
CVMFS_SERVER_URL="http://s1bnl-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1fnal-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1osggoc-cvmfs.openhtc.io/cvmfs/@fqrn@"
432
else
533
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@"
634
fi

debian/cvmfs-config-osg.dsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# created by obsupdate.sh, do not edit by hand
2-
Debtransform-Tar: cvmfs-config-osg-2.4.tar.gz
2+
Debtransform-Tar: cvmfs-config-osg-2.5.tar.gz
33
Format: 1.0
4-
Version: 2.4.4
4+
Version: 2.5.1
55
Binary: cvmfs-config-osg
66
Source: cvmfs-config-osg
77
Maintainer: Dave Dykstra <[email protected]>

rpm/cvmfs-config-osg.spec

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: CernVM File System OSG Configuration and Public Keys
22
Name: cvmfs-config-osg
3-
Version: 2.4
4-
Release: 4%{?dist}
3+
Version: 2.5
4+
Release: 1%{?dist}
55
# download with:
66
# $ curl -L -o cvmfs-config-osg-%{version}.tar.gz \
77
# https://github.com/opensciencegrid/cvmfs-config-osg/archive/v%{version}.tar.gz
@@ -40,6 +40,14 @@ make install-redhat DESTDIR=$RPM_BUILD_ROOT
4040
%config %{_sysconfdir}/cvmfs/config.d/*
4141

4242
%changelog
43+
* Mon Oct 12 2020 Dave Dykstra <[email protected]> - 2.5-1
44+
- Update the configuration for the config repo to apply all the logic
45+
from the config repo's default.conf and common.conf. That is, support
46+
USE_CVMFS_CDN and CVMFS_CLIENT_PROFILE and set default CVMFS_PAC_URLS
47+
covering the WLCG Web Proxy Auto Discovery.
48+
- Reverse the order of the fallback proxies because of the bug in
49+
https://sft.its.cern.ch/jira/browse/CVM-1920
50+
4351
* Fri Mar 27 2020 Dave Dykstra <[email protected]> - 2.4-4
4452
- Skipped release 2.4-2 and 2.4-3 to make consistent with cvmfs-config-egi.
4553
- Change Conflicts: cvmfs-config-default to Obsoletes: to make it

0 commit comments

Comments
 (0)