-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Make default pki directory configurable #61453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b222db6
to
266f486
Compare
The files in `/etc/salt/pki` are not configuration files in the sense of the FHS ("local file used to control the operation of a program"). Debian wants to change the default location to `/var/lib/salt/pki` (to properly follow FHS and to allow setting StateDirectory in the salt master systemd configuration). Therefore introduce a `STATE_DIR` syspaths variable which defaults to `CONFIG_DIR`, but can be individually customized. fixes saltstack#3396 Bug-Debian: https://bugs.debian.org/698898 Forwarded: saltstack#61453 Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
The files in `/etc/salt/pki` are not configuration files in the sense of the FHS ("local file used to control the operation of a program"). Debian wants to change the default location to `/var/lib/salt/pki` (to properly follow FHS and to allow setting StateDirectory in the salt master systemd configuration). Therefore introduce a `STATE_DIR` syspaths variable which defaults to `CONFIG_DIR`, but can be individually customized. fixes saltstack#3396 Bug-Debian: https://bugs.debian.org/698898 Forwarded: saltstack#61453 Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
The files in `/etc/salt/pki` are not configuration files in the sense of the FHS ("local file used to control the operation of a program"). Debian wants to change the default location to `/var/lib/salt/pki` (to properly follow FHS and to allow setting StateDirectory in the salt master systemd configuration). Therefore introduce a `STATE_DIR` syspaths variable which defaults to `CONFIG_DIR`, but can be individually customized. fixes saltstack#3396 Bug-Debian: https://bugs.debian.org/698898 Forwarded: saltstack#61453 Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bdrung Given that the default for Salt State files is /srv/salt, wondering if the name STATE_DIR is confusing here since my first reading is of STATE_DIR makes me think of /srv/salt and not anything related to PKI directory.
Would prefer a better name and I know a prime problem with programming is naming. I'd even at first glance would go with PKI_DIR, but would be up for something better.
I named it |
@bdrung Only so many words in English :) , understand the issue of STATE, and it's getting used for many contexts. In the case of Salt, STATE usually implies Salt States and trying to prevent confusion for users between the 5.8 definition of state in FHS and Salt state. I had high hopes for FHS back in the late 90s/early 2000s, but other distributions ignored it and here we are today :(. So PKI_DIR was a suggestion, and I would be fine with it signifying only pki information there, but I see /var/lib/salt/pki is already in use (Ubuntu 22.04 with 3004.1+dfsg-2), so perhaps there may be other uses intended for this of which I am unaware. I understand that this PR is essentially moving Make-default-pki-directory-configurable.patch into Salt from the Debian fork and you want to not have to change code and operation that you already have, however, I think the use of STATE_DIR while accurate, would be confusing to users, esp after
I dislike differentiating by case since some OS's don't (burned when porting to Windows from UNIX in a different life), hence wondering about LIB_STATE_DIR | PKI_LIB_STATE_DIR | LIB_PKI_STATE_DIR, since one of those reflects accurately STATE in LIB directory [for PKI], and nobody should confuse that with anything to do with Salt State. This would imply changes to Debian's fork, but I believe that was a poor confusing choice of term, I would not want to propagate it moving forward. |
Okay. What do you prefer?
|
@bdrung Lets go with LIB_STATE_DIR |
266f486
to
5727f50
Compare
Okay. Changed this merge request to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a small doc request
The files in `/etc/salt/pki` are not configuration files in the sense of the FHS ("local file used to control the operation of a program"). Debian wants to change the default location to `/var/lib/salt/pki` (to properly follow FHS and to allow setting StateDirectory in the salt master systemd configuration). Therefore introduce a `LIB_STATE_DIR` syspaths variable which defaults to `CONFIG_DIR`, but can be individually customized. fixes saltstack#3396 Bug-Debian: https://bugs.debian.org/698898 Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
5727f50
to
d293432
Compare
The files in
/etc/salt/pki
are not configuration files in the sense of the FHS ("local file used to control the operation of a program"). Debian wants to change the default location to/var/lib/salt/pki
(to properly follow FHS and to allow setting StateDirectory in the salt master systemd configuration).Therefore introduce a
LIB_STATE_DIR
syspaths variable which defaults toCONFIG_DIR
, but can be individually customized.This merge proposal is a follow-up of merge proposal #46277 since that MR was closed.
fixes #3396
Bug-Debian: https://bugs.debian.org/698898