Giter Site home page Giter Site logo

Comments (1)

tomaszklim avatar tomaszklim commented on May 22, 2024

All existing documentation is already published. How to write new drivers:

  1. Create account, install command line client for new vendor, make sure it works, learn how to use multiple accounts using that command line client.

  2. Write working install.sh script, that installs all dependencies and can be safely run multiple times, possibly fixing found problems, reinstalling/updating packages etc.

  3. Look at existing drivers and start with setup-account.sh, list-accounts.sh and test-account.sh - as for the start, setup-account.sh should just create configuration profiles without any additional questions, you can add them later when working on creating instances.

  4. When you successfully managed to create many profiles, focus on ssh key management: get-key-path.sh, list-ssh-keys.sh, create-ssh-key.sh

  5. Next implement listing scripts: list regions, list available images, list instance types, list other required resources (except on instances). Also get-configured-region.sh, get-ubuntu-image.sh, get-default-instance-type.sh and possily others related to OS image management. Choose caching strategy at this point (or just look at Azure scripts).

  6. Create some instances manually and focus on list-instances script. Probably you'll have to implement some parser at this point. Look at "internal" subdirectories for each driver.

  7. Next write scripts operating on existing instances: delete-instance.sh and possibly resize/redeploy/open/do-whatever. Verify that you properly operate on instance identifiers returned in 6th column of instance listing script. Really, this part is tricky for some vendors!

  8. create-instance.sh should be the last part, as you need all other auxiliary scripts before (operate on regions, OS images, instance types and other vendor-specific resources).

from polynimbus.

Related Issues (4)

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.