Code Monkey home page Code Monkey logo

fog-ovirt's Introduction

Fog::Ovirt

fog-ovirt is an ovirt provider for fog.

Installation

Add this line to your application's Gemfile:

gem 'fog-ovirt'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fog-ovirt

Usage

Require the gem:

require 'fog/ovirt' 

Connect to ovirt instance:

compute = Fog::Compute.new(
          :provider         => "ovirt",
          :ovirt_username   => user,
          :ovirt_password   => password,
          :ovirt_url        => url,
          :ovirt_datacenter => uuid,
          :ovirt_ca_cert_store => ca_cert_store
      )

API Support

This gem fully supports API v3 of oVirt.

Version 1.0.2 adds support API V4 as well. The first version does not give full support. The supported requests for API V4 are:

:vm_action, :destroy_vm, :create_vm, :update_vm (without os changes)
:datacenters
:storage_domains
:list_virtual_machines, :get_virtual_machine
:list_templates, :get_template
:list_instance_types, :get_instance_type
:list_clusters, :get_cluster
:add_interface, :destroy_interface, :update_interface, :list_vm_interfaces, :list_template_interfaces
:list_networks
:vm_ticket
:list_vm_volumes, :list_template_volumes, :list_volumes, :add_volume, :destroy_volume, :update_volume
:get_api_version
:list_quotas, :get_quota
:list_operating_systems

Choosing api version

This example shows the usage as a fog provider:

client = Fog::Compute.new(
    :provider         => "ovirt",
    :ovirt_username   => user,
    :ovirt_password   => password,
    :ovirt_url        => url,
    :ovirt_datacenter => datacenter,
    :public_key       => public_key,
    :api_version      => 'v4'
  )    

The :api_version can be sent 'v3' or 'v4' to determine which API version to use.

Feedback is welcome. Please feel free to open issues for the V4 support and contribute.

Contributing

Please refer to CONTRIBUTING.md.

License

Please refer to LICENSE.md.

fog-ovirt's People

Contributors

adamruzicka avatar inecas avatar mariohmol avatar orrabin avatar plribeiro3000 avatar shimshtein avatar shiramax avatar uxabre avatar

Watchers

 avatar  avatar

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.