-
Notifications
You must be signed in to change notification settings - Fork 494
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
Offline install bundle external #4090
Comments
This can be solved by adding support for |
Ah I didn't see that proposal. The proposed I think that there definitely is some overlap between the two proposals though. If I read that issue correctly the |
If you’re dealing with multiple files, you can probably copy |
You can run |
Note you can still use templating: use a different config file when generating the archive with the appropriate variables set. |
That is how I am currently managing it, however it complicates trying to sync changes made on the remote machine back to the original repo and loses some of the other features like it's ability to run scripts on changing a specific file. |
Is your feature request related to a problem? Please describe.
When installing dot files in a offline or airgaped environment getting external content is difficult and requires either using the archive command and then manually installing the dot files or not using the chezmoiexternal feature.
Describe the solution you'd like
I would like to propose a option to download the externals to an archive that could then be transferred along with the local copy of the dotfiles git repo to the offline/airgaped machine. Then when specifying the location of got repo in the unit command add a flag to also tell it where to find the externals archive. It would then copy the files out of the archive to the locations specified in the
chezmoiexternal files. Optionally allow specifying the machine specs/data so as to anwser templated files.
Describe alternatives you've considered
Additional context
An offline environment could include use cases such as a vm, or during presseeding/autoinstall where the repo could be stored on local media, a git server, or network storage.
An example of something similar would be how terraform provideds a way to mirror the providers to a local folder that can be copied down.
https://support.hashicorp.com/hc/en-us/articles/23562100651923-How-to-use-Terraform-CLI-with-Local-Mirror-for-Provider-Plugins-for-system-without-internet-access
The text was updated successfully, but these errors were encountered: