All Projects → snobear → Ezmomi

snobear / Ezmomi

Licence: mit
cli tool for common VMware vSphere tasks

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Ezmomi

Cloud-PAW-Management
Simplify PAW and SPA for the masses, unify the MS Internal, and public PAW specs, and expedite deployment to ~5min or less.
Stars: ✭ 45 (-59.82%)
Mutual labels:  deployment, management
Afctl
afctl helps to manage and deploy Apache Airflow projects faster and smoother.
Stars: ✭ 116 (+3.57%)
Mutual labels:  management, deployment
Terraform Vsphere Kubespray
Deploy a Kubernetes HA cluster on VMware vSphere
Stars: ✭ 141 (+25.89%)
Mutual labels:  vmware, deployment
Manageiq
ManageIQ Open-Source Management Platform
Stars: ✭ 1,089 (+872.32%)
Mutual labels:  management, vmware
Seldon Server
Machine Learning Platform and Recommendation Engine built on Kubernetes
Stars: ✭ 1,435 (+1181.25%)
Mutual labels:  deployment
Windowsagent
OCS Inventory NG Agent for Windows
Stars: ✭ 100 (-10.71%)
Mutual labels:  deployment
Team Container
A collection of containers to prepare a server for collaboration.
Stars: ✭ 100 (-10.71%)
Mutual labels:  deployment
Slimjim
SlimJim is a simple auto update script utilizing Slim (a PHP micro-framework), incron (inotify cron system), and GitHub/BitBucket post-receive-hook
Stars: ✭ 98 (-12.5%)
Mutual labels:  deployment
Paratrooper
Library for creating tasks that deploy to Heroku
Stars: ✭ 110 (-1.79%)
Mutual labels:  deployment
Rhcsa8env
This is a RHCSA8 study environment built with Vagrant/Ansible
Stars: ✭ 108 (-3.57%)
Mutual labels:  deployment
Laravel Deployer
🚀 Zero-downtime deployment out-of-the-box
Stars: ✭ 1,536 (+1271.43%)
Mutual labels:  deployment
Packer Ubuntu 1804
This build has been moved - see README.md
Stars: ✭ 101 (-9.82%)
Mutual labels:  vmware
Snowflake
Graphical SFTP client and terminal emulator with helpful utilities
Stars: ✭ 1,676 (+1396.43%)
Mutual labels:  deployment
Phploy
PHPloy - Incremental Git (S)FTP deployment tool that supports multiple servers, submodules and rollbacks.
Stars: ✭ 1,365 (+1118.75%)
Mutual labels:  deployment
Json Serverless
Transform a JSON file into a serverless REST API in AWS cloud
Stars: ✭ 108 (-3.57%)
Mutual labels:  deployment
Nitro Demo
nuxt nitro preview
Stars: ✭ 100 (-10.71%)
Mutual labels:  deployment
Deliverybot
Fast, safe and secure Continous Delivery pipelines you can setup in minutes.
Stars: ✭ 107 (-4.46%)
Mutual labels:  deployment
Stencil Store
Store is a lightweight shared state library by the StencilJS core team. Implements a simple key/value map that efficiently re-renders components when necessary.
Stars: ✭ 107 (-4.46%)
Mutual labels:  management
Psykube
A faster way to deploy to Kubernetes!
Stars: ✭ 104 (-7.14%)
Mutual labels:  deployment
Community.vmware
Ansible Collection for VMWare
Stars: ✭ 104 (-7.14%)
Mutual labels:  vmware

Build Status ezmomi

A simple Linux command line interface for common VMware vSphere VM tasks.

EZmomi uses pyvmomi (VMware vSphere API Python Bindings).

Requirements

vSphere 6
Python 2.7 or 3.x

(If you are using vSphere 5, install the older ezmomi 0.x: pip install ezmomi==0.4.2)

Install

pip install ezmomi

Example Usage

Clone a template with two static IPs:
ezmomi clone --template centos67 --hostname test01 --cpus 2 --mem 4 --ips 172.10.16.203 172.10.16.204

ips takes any number of ips. See ezmomi clone --help for a list of params.

To optionally run a command/script after clone has started:

ezmomi clone --template centos6 --hostname test01 --cpus 2 --mem 4 --ips 172.10.16.203 172.10.16.204 --post-clone-cmd /usr/local/bin/additional-provisioning-steps.sh

This example would run /usr/local/bin/additional-provisioning-steps.sh on the same host ezmomi is run on. You can reference the EZMOMI_CLONE_HOSTNAME environment variable in your script to retrieve the --hostname.

Clone a template and put vm is specific folder
ezmomi clone --server vcenter_url --template centos67 --hostname test01 --cpus 2 --mem 4 --destination-folder "/DC/folder/" --ips 172.10.16.203 172.10.16.204

This example will put the cloned vm to specific destination folder in specified vcenter.

Power Operations

Guest shutdown

ezmomi shutdown --name test01

This command falls back to powerOff if VMware guest tools are not installed/available.

Power On/Off

ezmomi powerOn --name test01
ezmomi powerOff --name test01
Power Status
ezmomi status --name test01
# for much more information add --extra:
ezmomi status --name test01 --extra
Destroy a VM
ezmomi destroy --name test01
VM Snapshot operations

See help for more info on each operation:

ezmomi listSnapshots --help
ezmomi createSnapshot --help
ezmomi removeSnapshot --help
ezmomi revertSnapshot --help
Listing your resources:
ezmomi list --type VirtualMachine
ezmomi list --type Network
ezmomi list --type Datastore
etc...
Disable ssl warnings
ezmomi --no-ssl-verify [command] [options]
Sync a VM's time with ESXi host
ezmomi syncTimeWithHost --name somevm01

See Managed Object Types in the vSphere API docs for a list of types to look up.

Help

Each command section has its own help:

ezmomi --help
ezmomi clone --help
ezmomi list --help
etc...

Install via github

git clone https://github.com/snobear/ezmomi.git
# using python2.7 virtualenv
virtualenv -p python2.7 --no-site-packages ezmomi
cd ezmomi && source bin/activate
pip install -r requirements.txt
export PYTHONPATH=$PWD:$PYTHONPATH
ezmomi --help

Contributing

Pull requests, bug reports, and feature requests are extremely welcome.

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].