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

Added support for .kiv-distros.json #55

Closed
wants to merge 1 commit into from

Conversation

seocam
Copy link
Contributor

@seocam seocam commented Apr 7, 2020

@seocam
Copy link
Contributor Author

seocam commented Apr 7, 2020

I've changes quite a few things around in this PR.

  1. Added support to .kiv-distros.json where users will be able to build their own aliases for their vms.
  2. OS_TYPE and DISK_FORMAT are the same for all current images so I've set a default (user can override but it's all in a single place.
  3. Moved NETRESTART, SUDOGROUP and CLOUDINITDISABLE to be configured case by case but the default is set by OS_VARIANT.
  4. Added validation to ensure QCOW OS_VARIANT IMAGE_URL LOGIN_USER are always set.
  5. Fixed indentation.

I think that's all I've touched.

The only thing I didn't change that I don't quite know how to solve is the if DISTRO_NAME that checks for amazon linux and a specific version of ubuntu to do something different. In order to have my approach fully functional there shouldn't be exceptions by distro (by os_variant would be fine).

Please, let me know what you think.

@seocam
Copy link
Contributor Author

seocam commented Apr 8, 2020

I've also added docs on the dependencies for Debian-based systems.

@giovtorres
Copy link
Owner

I'm still looking at this. One thing that comes to mind so far is JSON vs YAML. I've always felt YAML is an easier to use human interface over JSON. Could we use YAML and yq over JSON and jq? Thoughts?

@seocam
Copy link
Contributor Author

seocam commented Apr 12, 2020 via email

@giovtorres
Copy link
Owner

I like this idea a lot. I haven't had a chance to pull it down and test it locally, but I will!

@giovtorres
Copy link
Owner

I thought about this some more and I just have some reservations about a json interface. I have some ideas on how to provide a better interface, but requires some refactoring.

@giovtorres
Copy link
Owner

Closing this PR for now. I like this feature and would like to shuffle things around a bit first to make the implementation a little more user friendly. Thanks!

@giovtorres giovtorres closed this Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to custom list of distros
2 participants