Skip to content
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

[WIP] Allow starting an environment from a remote init file #489

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nvgoldin
Copy link
Contributor

This commit adds support for running lago init with the init file as a remote URL, i.e.:

lago init http://localhost:8000/inits/LagoInitFile

The use case is straight-forward: we could put several 'default' inits in http://templates.ovirt.org, and make them reusable. Also it will make "getting started with lago" much easier: install lago & run lago init http://.....

This raises 2 questions:

  1. Should the downloaded init file be saved for future usage? Currently I implemented it so it is a temporary file(so it is not saved), in order to bypass the question of how to create 'unique' init files each time.

  2. I'm not sure what to do with 'LAGO_INITFILE_PATH' which we normally set to the init file location. It doesn't make sense to set it to /tmp, as the remote init file could use that variable. For now I set it to the path of where the 'lago init' command was called.

Thoughts?

Signed-off-by: Nadav Goldin [email protected]

This commit adds support for fetching the init file from an http or
https server, i.e.:

lago init http://localhost:8000/inits/LagoInitFile

Signed-off-by: Nadav Goldin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant