Giter Site home page Giter Site logo

Comments (2)

seocam avatar seocam commented on May 22, 2024 1

There probably many ways it could be done. One example would be to take an argument of a json file with the distro definition and parse it using jq (available in most debian-based and rpm-based distros).

For this file:

{
    "centos8": {
        "qcow": "CentOS-8-GenericCloud-8.1.1911-20200113.3.x86_64.qcow2",
        "os_variant": "centos8",
        "image_url": "https://cloud.centos.org/centos/8/x86_64/images",
        "disk_format": "qcow2",
        "login_user": "centos"
    }
}

You could read the settings like this:

$ cat distros.json | jq .centos8.qcow
"CentOS-8-GenericCloud-8.1.1911-20200113.3.x86_64.qcow2"

I've made this gist with all "distro variables" read using jq:
https://gist.github.com/seocam/e0e6ff8e4b2b26884cda1ca046ec5921

from kvm-install-vm.

giovtorres avatar giovtorres commented on May 22, 2024

Would you be able to walk me through how you would implement this feature?

from kvm-install-vm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.