-
-
Notifications
You must be signed in to change notification settings - Fork 564
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
[DRAFT FOR DISCUSSION] Support for helper-scripts environment variables #906
base: main
Are you sure you want to change the base?
Conversation
I would prefer to make this simpler and just support reading a |
I think either/or is a good idea. Doing advanced mode and setting everything one at a time is tedious. I would like to be promoted specifically showing what values are overriding the defaults (maybe "****" our the passwords). |
I would side with @havardthom on this. We should not overcomplicate the UI, keep it simpler then bloat it. One addition could be that we make the path configerable. When you have more then one node in a Cluster you could make it so the config file can be shared on a Network Share / a folder wich is accesible from everey Host in the cluster. This Way you only need one consitent config file and not 5 different one. This could mabe look somthing like this:
With this feature implemente we could also more easily look into supoorting SSH Keys. Also maybe @BramSuurdje could in addition to Documentation create a Config File Editor similar to the JSON-Editor. |
I like your ideas, simply reading the config file should be enough for more advanced user to go and edit manually (given enough documention). And supporting multi-host configs sounds nice, but I have no idea how it could be done. How can we ensure that wherever in the cluster a script is run, that it finds/reads the right config file? |
We could just use static path |
Thats a good ideea. |
I pushed a commit to make it only read from the file, and loaded some variables in their respective advanced configuration menu. Should we support more environment variables, such as PW1, BRG...? |
In my opinion we should support all the things a user can change with advanced settings. |
Tangential to this issue - is any work being done towards enabling the Helper Scripts to run non-interactively / under automation tools? |
✍️ Description
This is a draft PR, following some ideas we had discussed over Discord a few weeks ago. It was also requested by a few users (can't recall where)
Idea is to be able to save/reuse come configurations/parameters. I'm using a configuration file in
/etc/pve-helper-scripts.conf
to store the variables, and load them in memory when callinginstall_script
function.Variables are stored like this in the config file:
🛠️ Type of Change
Please check the relevant options:
✅ Prerequisites
The following steps must be completed for the pull request to be considered: