-
Notifications
You must be signed in to change notification settings - Fork 32
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
Enhancement: add LABPASSPHRASE to .zshrc #827
Comments
It dawned on me that I don't (yet) know how soon It's getting late and I need to dig into this further another day. |
So far I haven't yet found the point at which There is the possibility the coder content (including Feedback welcome. |
@networkRob thought here is to always have the environment variable set and available to the ATD user. These can be leveraged in any workshops or guides without requiring the user to manually enter the information |
This request makes sense, I'm just thinking about how to implement this. Within the
When a lab does startup, we have this script and couple of lines that goes through and updates the lab password with the unique lab password.
Currently we don't mount the Maybe one possibility is to mount that as an env var into the container. |
Thank you Julio for following up on this! Ah hah, at line 183 is that config.yaml file being mounted into the container. |
I don't think we need to update the I think what could be done, similar to the Nautobot container set, is to create an env file, where we put our placeholder of:
We have scripts that will update that password value when the topology boots up. Then that could be mounted via the |
Nice! (I learn best by seeing and doing so I tracked stuff down in the repo. 😀)
|
Is your feature request related to a problem? Please describe.
Feature request (enhancement).
Describe the solution you'd like
Add LABPASSPHRASE to the
.zshrc
after line 41 where XTERM is set to help avoid the stumbling block of an unset environment variable upon opening multiple terminals.Something along the lines of the below snippet should do it.
Describe alternatives you've considered
We could keep things as they are (manual environment variable instantiation) or automate it a bit more with this enhancement.
Additional context
Before I realized (or looked to find that) the ATD lab environment uses Docker containers, I put in a feature enhancement issue on the avd-workshops repo to add the LABPASSPHRASE environment variable to
.zshrc
. 🤦♂️ 🤷♂️💡 I plan to submit a PR to cover this suggestion once Arista Engineering weighs in. ❤️
The text was updated successfully, but these errors were encountered: