Skip to content

Commit ca359e1

Browse files
authored
Add mount override for /etc/cvmfs/default.d/90-local.conf (#148)
The default CVMFS package installs /etc/cvmfs/default.d/50-cern.conf which defines the config repo. The only place that a config repo can defined is default.local or in default.d directory, so to change the config repo (for example, to use the OSG config repo) you must add a new file, to be read after 50-cern.conf to the default.d directory.
1 parent 27e2a54 commit ca359e1

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

deployments/helm/cvmfs-csi/values.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ extraConfigMaps:
2525
# Whether repositories should share a cache directory or each have their own.
2626
CVMFS_SHARED_CACHE=no
2727
{{- end -}}
28+
# /etc/cvmfs/default.d/90-local.conf
29+
cvmfs-csi-default-d: {}
30+
# 90-local.conf: |
31+
# This is the OSG configuration file for the CVMFS client.
32+
# It will overwride the default configuration file which uses the cern config repo
33+
# CVMFS_SEND_INFO_HEADER=yes
34+
# CVMFS_KEYS_DIR=/etc/cvmfs/keys/opensciencegrid.org
35+
# CVMFS_USE_GEOAPI=yes
36+
# CVMFS_CONFIG_REPOSITORY=config-osg.opensciencegrid.org
37+
# CVMFS_CONFIG_REPO_REQUIRED=yes
38+
# CVMFS_FALLBACK_PROXY="http://cvmfsbproxy.fnal.gov:3126;http://cvmfsbproxy.cern.ch:3126"
2839

2940
# Cache configuration for storing CVMFS client data.
3041
# CVMFS CSI supports two kinds of caches:
@@ -64,6 +75,9 @@ nodeplugin:
6475
- name: etc-cvmfs-config-d
6576
configMap:
6677
name: cvmfs-csi-config-d
78+
- name: etc-cvmfs-default-d
79+
configMap:
80+
name: cvmfs-csi-default-d
6781

6882
# CVMFS CSI image and container resources specs.
6983
plugin:
@@ -88,6 +102,9 @@ nodeplugin:
88102
subPath: default.local
89103
- name: etc-cvmfs-config-d
90104
mountPath: /etc/cvmfs/config.d
105+
- name: etc-cvmfs-default-d
106+
mountPath: /etc/cvmfs/default.d/90-local.conf
107+
subPath: 90-local.conf
91108

92109
# automount-reconciler image and container resources specs.
93110
automountReconciler:
@@ -104,6 +121,9 @@ nodeplugin:
104121
subPath: default.local
105122
- name: etc-cvmfs-config-d
106123
mountPath: /etc/cvmfs/config.d
124+
- name: etc-cvmfs-default-d
125+
mountPath: /etc/cvmfs/default.d/90-local.conf
126+
subPath: 90-local.conf
107127

108128
# Prefetch cvmfs repos on a schedule to keep client cache warm.
109129
prefetcher:

docs/how-to-use.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,15 @@ drwxrwxr-x 57 999 997 68 Aug 13 03:43 sw
251251

252252
## Adding CVMFS repository configuration
253253

254-
All CVMFS client configuration is stored in two ConfigMaps (created in CVMFS CSI's namespace):
254+
All CVMFS client configuration is stored in three ConfigMaps (created in CVMFS CSI's namespace):
255255
* ConfigMap `cvmfs-csi-default-local` mounted under `/etc/cvmfs/default.local` file,
256256
* ConfigMap `cvmfs-csi-config-d` mounted under `/etc/cvmfs/config.d` directory.
257+
* ConfigMap `cvmfs-csi-default-d` mounted under `/etc/cvmfs/default.d/90-local.conf` directory.
257258

258259
To add or change repository configuration, run `kubectl edit configmap cvmfs-csi-config-d` and edit the ConfigMap items accordingly. Note that it may take some time until the updated ConfigMap contents get propagated to all nodes and CVMFS clients to pick up the new changes.
259260

261+
The `cvmfs-csi-default-d` config map is designed to be used for settings that are only allowed in the default.d/*.conf directory. For example, the only place that the cern config repo can be overridden is in the default.d directory.
262+
260263
### Example: adding ilc.desy.de CVMFS repository
261264

262265
To add ilc.desy.de CVMFS repository, run `kubectl edit configmap cvmfs-csi-config-d` and add following to the `data` map:

0 commit comments

Comments
 (0)