Yeah, the current place the dirac.cfg file and the grid-security directory ends up is definitely wrong (lib/pythonX.Y/site-packages/etc/).
I'm not sure what the "right" solution is, this is in incoherent dump but...
diracos/etc/: Cleaner, but gets deleted every time there is an update
diracos/../etc/: What happens when you install a client with pip or conda directly?
diracos/etc/ and symlink to one level higher: Better but we have to make multiple symlinks, one for dirac.cfg, one for etc/grid-security/certificates, one for etc/grid-security/voms, one for etc/grid-security/vomsdir, ...
diracos/etc/dirac/ which is a symlink to a stable location
diracos/etc/ but let it always be overridden by an environment variable ($DIRAC_ETC_DIR)
- Lots of combinations of the above
I'm tempted towards (5) and this would also make it easier to have a shared installation on CVMFS. I'm also undecided about if we want to set the X509 variables as part of this.
Originally posted by @chrisburr in #5000 (comment)
Yeah, the current place the
dirac.cfgfile and thegrid-securitydirectory ends up is definitely wrong (lib/pythonX.Y/site-packages/etc/).I'm not sure what the "right" solution is, this is in incoherent dump but...
diracos/etc/: Cleaner, but gets deleted every time there is an updatediracos/../etc/: What happens when you install a client withpiporcondadirectly?diracos/etc/and symlink to one level higher: Better but we have to make multiple symlinks, one fordirac.cfg, one foretc/grid-security/certificates, one foretc/grid-security/voms, one foretc/grid-security/vomsdir, ...diracos/etc/dirac/which is a symlink to a stable locationdiracos/etc/but let it always be overridden by an environment variable ($DIRAC_ETC_DIR)I'm tempted towards (5) and this would also make it easier to have a shared installation on CVMFS. I'm also undecided about if we want to set the X509 variables as part of this.
Originally posted by @chrisburr in #5000 (comment)