Skip to content

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 ngoldin@redhat.com

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 <ngoldin@redhat.com>
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