All Projects → fog → Fog Vsphere

fog / Fog Vsphere

Licence: mit
Fog for vSphere

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Fog Vsphere

cloudpods
A cloud-native open-source unified multi-cloud and hybrid-cloud platform. 开源、云原生的多云管理及混合云融合平台
Stars: ✭ 1,469 (+4796.67%)
Mutual labels:  vsphere
vmware.vmware rest
Ansible Collection for VMWare (REST modules)
Stars: ✭ 60 (+100%)
Mutual labels:  vsphere
Vic
vSphere Integrated Containers Engine is a container runtime for vSphere.
Stars: ✭ 607 (+1923.33%)
Mutual labels:  vsphere
bosh-vsphere-cpi-release
BOSH vSphere CPI
Stars: ✭ 29 (-3.33%)
Mutual labels:  vsphere
vsphere-kubernetes-drivers-operator
vSphere Kubernetes Driver Operator to simplify and automate the lifecycle management of CSI and CPI for Kubernetes cluster running on vSphere
Stars: ✭ 21 (-30%)
Mutual labels:  vsphere
ez-rancher
Terraform to provision vSphere VMs, and install Rancher on an RKE cluster
Stars: ✭ 20 (-33.33%)
Mutual labels:  vsphere
AsBuiltReport.VMware.vSphere
Repository for AsBuiltReport VMware vSphere module
Stars: ✭ 75 (+150%)
Mutual labels:  vsphere
Vsphere Connect
A modern vSphere Client
Stars: ✭ 14 (-53.33%)
Mutual labels:  vsphere
vsphere-csi-driver
vSphere storage Container Storage Interface (CSI) plugin
Stars: ✭ 176 (+486.67%)
Mutual labels:  vsphere
Packer Builder Vsphere
Packer plugin for remote builds on VMware vSphere
Stars: ✭ 531 (+1670%)
Mutual labels:  vsphere
vmSafeguard
vmSafeguard is a management, planning, backup system for a Vmware ESXi(s) solution, orchestrated through a Web Admin Panel. RTFM for more info. Under develop since Jun 2020
Stars: ✭ 20 (-33.33%)
Mutual labels:  vsphere
vcenter-event-broker-appliance
The VMware Event Broker Appliance Fling enables customers to unlock the hidden potential of events in their SDDC to easily create event-driven automation.
Stars: ✭ 120 (+300%)
Mutual labels:  vsphere
Rbvmomi
Ruby interface to the VMware vSphere API.
Stars: ✭ 304 (+913.33%)
Mutual labels:  vsphere
ansible-vmware-http
Examples of Ansible playbook to manage VMware using HTTP APIs
Stars: ✭ 29 (-3.33%)
Mutual labels:  vsphere
Vsphere Modules
This is my Module Collection for VMware vSphere
Stars: ✭ 18 (-40%)
Mutual labels:  vsphere
SDDC.Lab
Ansible playbooks for automated deployment and configuration of a nested vSphere environment with NSX-T
Stars: ✭ 117 (+290%)
Mutual labels:  vsphere
resoto
Resoto - Find leaky resources, manage quota limits, detect drift, and clean up!
Stars: ✭ 562 (+1773.33%)
Mutual labels:  vsphere
Vsphere2metrics
VMware vSphere Performance Metrics Integration with Graphite & InfluxDB
Stars: ✭ 28 (-6.67%)
Mutual labels:  vsphere
Jupiter Brain
Jupiter Brain manages servers
Stars: ✭ 12 (-60%)
Mutual labels:  vsphere
Terraform Provider Vsphere
Terraform VMware vSphere provider
Stars: ✭ 380 (+1166.67%)
Mutual labels:  vsphere

Fog vSphere

VMware vSphere® provider for the Fog cloud services library

Gem Version Build Status Test Coverage Code Climate

The VMware vSphere® provider allows you to use the abstractions of the Fog cloud services library to communicate with vSphere.

Installation

To use this gem in your application, add this line to your Gemfile:

gem 'fog-vsphere'

And then execute:

bundle

Or install it yourself as:

gem install fog-vsphere

Upgrading

In version 3.0.0 we have changed the namespacing of Compute service. Fog::Compute::Vsphere became Fog::Vsphere::Compute as recommended by fog-core. We hope we are not causing any issues as Fog::Compute[:vsphere] is only public API.

Usage

To connect to your vSphere instance with Fog vSphere:

require 'fog/vsphere'

compute = Fog::Compute.new(
  provider: :vsphere,
  vsphere_username: 'username',
  vsphere_password: 'password',
  vsphere_server: 'server.example.com',
  vsphere_expected_pubkey_hash: '0123456789abcdef0123456789abcdef',
  vsphere_ssl: true,
  vsphere_rev: '6.0'
)

From there you can create, destroy, list, and modify most things related to vSphere. Some examples include:

# continued from previous example

# List datacenters
compute.list_datacenters
#=> [{id: 'datacenter-1', name: 'DC1', path: ['DC1'], status: 'gray'},
#=>  {id: 'datacenter-2', name: 'DC2', path: ['DC2'], status: 'gray'}]

# Get datacenter by name
compute.get_datacenter('DC1')
#=> {name: 'DC1', status: 'gray', path: ['DC1']}

# List virtual machines
compute.list_virtual_machines
#=> [{'id'   => 'ab589f9a-af35-428e-9690-9b96587d86f3',
#=>   'name' => 'TestVM',
#=>   'uuid' => 'fc51eb7a-fa50-4d96-bd16-63972b49f52f',
#=> ...

# List a VM's SCSI controllers
compute.list_vm_scsi_controllers('ab589f9a-af35-428e-9690-9b96587d86f3')
#=> [<Fog::Vsphere::Compute::SCSIController
#=>   shared_bus='noSharing',
#=>   type='VirtualLsiLogicController',
#=>   unit_number=7,
#=>   key=1000,
#=>   server_id=nil
#=>  >]

There is a lot more you can do as well! We are working on providing better documentation right now. For now, you can look at the RubyDocs, browse what's available with Pry, and view the documentation for Fog. We hope to have much more documentation and plenty of examples soon.

Contributing

To contribute to this project, add an issue or pull request. For more info on what that means or how to do it, see this guide from GitHub. For more details see CONTRIBUTING.md file

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].