Skip to content

Commit ad67ff8

Browse files
authored
Merge pull request #1 from DrDaveD/master
Make general purpose shared source between Redhat & Debian
2 parents e2b54cd + b47413a commit ad67ff8

26 files changed

+377
-137
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# /etc/cvmfs/default.d/60-osg.conf
22
#
33
# DO NOT EDIT THIS FILE
4-
# It will be replaced on upgrade. To override, edit:
5-
# /etc/cvmfs/default.local
4+
# It will be replaced on upgrade. To override, edit /etc/cvmfs/default.local
5+
#
66
CVMFS_SEND_INFO_HEADER=yes
77
CVMFS_KEYS_DIR=/etc/cvmfs/keys/opensciencegrid.org
88
CVMFS_USE_GEOAPI=yes
99
CVMFS_CONFIG_REPOSITORY=config-osg.opensciencegrid.org
10+
CVMFS_CONFIG_REPO_REQUIRED=yes
1011
CVMFS_FALLBACK_PROXY="http://cvmfsbproxy.cern.ch:3126;http://cvmfsbproxy.fnal.gov:3126"

Makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/make -f
2+
3+
# This make file takes care of installing files
4+
5+
all: # nothing to build
6+
7+
# default install target is debian because that's the easist way to
8+
# set up the 'rules' file.
9+
install: install-debian
10+
11+
install-common:
12+
mkdir -p $(DESTDIR)/etc/cvmfs/default.d \
13+
$(DESTDIR)/etc/cvmfs/config.d \
14+
$(DESTDIR)/etc/cvmfs/keys/opensciencegrid.org
15+
install -D -m 444 60-osg.conf $(DESTDIR)/etc/cvmfs/default.d
16+
install -D -m 444 config-osg.opensciencegrid.org.conf $(DESTDIR)/etc/cvmfs/config.d
17+
install -D -m 444 opensciencegrid.org.pub $(DESTDIR)/etc/cvmfs/keys/opensciencegrid.org
18+
19+
install-debian: install-common
20+
mkdir -p $(DESTDIR)/lib/systemd/system \
21+
$(DESTDIR)/lib/systemd/system/autofs.service.wants \
22+
$(DESTDIR)/usr/sbin
23+
install -D -m 444 cvmfs-config-osg.service $(DESTDIR)/lib/systemd/system
24+
ln -s ../cvmfs-config-osg.service $(DESTDIR)/lib/systemd/system/autofs.service.wants/cvmfs-config-osg.service
25+
install -D -m 555 cvmfs-config-osgd $(DESTDIR)/usr/sbin
26+
27+
# assume DESTDIR=$RPM_BUILD_ROOT is passed in
28+
install-redhat: install-common

README.md

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,37 @@
11
# cvmfs-config-osg
22

3-
## CVMFS configuration files
4-
5-
Repository for configuration files used to setup experiment-specific CVMFS area within OSG.
6-
Things to remember:
7-
* keep this repository and existing `cvmfs-config-osg` RPM in sync, current stream at https://vdt.cs.wisc.edu/svn/native/redhat/trunk/cvmfs-config-osg/
8-
9-
### For LIGO
10-
11-
Please, refer to [`ligo directory`](ligo/) for config files. Useful documenation about site specific configuration:
12-
> https://wiki.ligo.org/LVCcomputing/SiteConfiguration
13-
14-
### For OSG
15-
16-
This repository is meant for packaging CVMFS configuration; it is not meant for end-users.
17-
18-
End-user documentation can be found here:
19-
https://twiki.grid.iu.edu/bin/view/Documentation/Release3/InstallCvmfs
20-
3+
## CVMFS configuration package for the Open Science Grid
4+
5+
This is the source for the CernVM File System (CVMFS) configuration
6+
files for the Open Science Grid (OSG). It includes packaging for
7+
Redhat and Debian.
8+
9+
### Redhat
10+
11+
End-user documentation for Redhat systems can be found
12+
[here](https://twiki.grid.iu.edu/bin/view/Documentation/Release3/InstallCvmfs).
13+
14+
### Debian
15+
16+
For Debian, the End-user instructions are to install cvmfs from
17+
[the cvmfs download page](https://cernvm.cern.ch/portal/filesystem/downloads)
18+
and this package from
19+
[github](https://github.com/opensciencegrid/cvmfs-config-osg/releases).
20+
Then if you want to enable autofs, add the following contents
21+
into /etc/auto.master.d/cvmfs.autofs:
22+
```
23+
/cvmfs /etc/auto.cvmfs
24+
```
25+
and restart autofs with
26+
```
27+
systemctl restart autofs
28+
```
29+
and also enable and start the cvmfs-config-osg service with:
30+
```
31+
systemctl enable cvmfs-config-osg
32+
systemctl start cvmfs-config-osg
33+
```
34+
That service will start a daemon to make sure that the configuration
35+
repository /cvmfs/config-osg.opensciencegrid.org stays mounted,
36+
which is necessary to work around a Debian bug that causes autofs to
37+
hang if a recursive automount is attempted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
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@"

cvmfs-config-osg.service

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Unit]
2+
Description=daemon to keep /cvmfs/config-osg.opensciencegrid.org mounted
3+
Requires=autofs.service
4+
After=autofs.service
5+
6+
[Service]
7+
Type=simple
8+
ExecStart=/usr/sbin/cvmfs-config-osgd /cvmfs/config-osg.opensciencegrid.org/etc
9+
10+
[Install]
11+
WantedBy=multi-user.target

cvmfs-config-osgd

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
# This is intended to be run as a daemon in order to keep a CVMFS
3+
# configuration repository mounted indefinitely on Debian.
4+
# It is to work around the fact that Debian's autofs does not allow
5+
# recursive mounts.
6+
ME="`basename $0`"
7+
usage()
8+
{
9+
echo "Usage: $ME directory_to_mount" >&2
10+
exit 1
11+
}
12+
13+
if [ $# != 1 ]; then
14+
usage
15+
fi
16+
set -e
17+
cd "$1"
18+
exec -a $ME sleep infinity

ligo/README.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

ligo/config-osg.opensciencegrid.org.conf

Lines changed: 0 additions & 9 deletions
This file was deleted.

ligo/cvmfs-config\x2dosg.opensciencegrid.org.automount

Lines changed: 0 additions & 8 deletions
This file was deleted.

ligo/cvmfs-config\x2dosg.opensciencegrid.org.mount

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)