[DRAFT FOR DISCUSSION] Support for helper-scripts environment variables #906
+93
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✍️ 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: