-
Notifications
You must be signed in to change notification settings - Fork 28
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
Global Variables #64
Comments
Proposed ImplementationA new system-level variable would be introduced which would allow the user to designate a locally-configured keystore as the global keystore. The configuration would look something like the below.
The values in this keystore would be passed into a template merge regardless of what specific keystore was matched. The values would be passed in as subordinates of the global keystore's name. For example, to retrieve the IP address variable in the template, you would call |
Will it be possible to set the Global keystore to an external CSV file, similarly to other external keystores? |
Added to enhancement tracking. Closing for now. |
A feature has been proposed which would allow a user to set globally available variables which would be passed into a template the same as a keystore's variables.
Use Case
The current use case is template portability. It may be desired to have a value in a template which would need to be changed when the template is used in a new ZTP server instance (something like the IP address of the ZTP server). It would be better to allow the user to define a global variable for this and use that variable in their templates.
The text was updated successfully, but these errors were encountered: